【QCon】 Get Clean, Stay Clean 価値を向上し続けるための秘訣

183 Views

April 12, 11

スライド概要

4/12 に開催された QCon Tokyo 2011 で実施したセッションの資料です(最新更新版)
PDFでの資料ダウンロードは、QCon Tokyo 2011 公式サイトより行えます。http://http://qcontokyo.com/download.html

お問い合わせ:
https://www.servantworks.co.jp/contact/
[email protected]

profile-image

サーバントワークス株式会社 代表取締役/アジャイルストラテジスト/アジャイルコーチ/エバンジェリスト DASA Ambassador DASA DevOps 認定トレーナー 株式会社Helpfeel アドバイザー 講演や支援のご相談はぜひお気軽に(ご相談は無料です)! PSPO II, PSM II, SPS, PAL-EBM, PAL I, PSU I, PSK I, PSD I, PSPO I, PSM I, CSM

シェア

またはPlayer版

埋め込む »CMSなどでJSが使えない場合

関連スライド

各ページのテキスト
2.

ながさわ ともはる 長沢 智治 • • • • 日本マイクロソフト株式会社 デベロッパー&プラットフォーム統括本部 エバンジェリスト / シニア プロダクト マネージャ E-AGILITY 協議会 準備委員 ソフトウェアテスト技術振興協会 ツール ワーキンググループ メンバー 日本 XP ユーザグループ スタッフ アジャイル イベント Agile Day 発起人 ( ) : ( 国内大手 情報通信企業 Software/Network Engineer Rational Software Software Engineering Specialist ) IBM Rational Borland Software Microsoft Brand Services Principal Consultant Evangelist Specialist Solution Architect Sr. PM © 2011 Microsoft Corporation. All rights reserved.

3.

© 2011 Microsoft Corporation. All rights reserved.

4.

© 2011 Microsoft Corporation. All rights reserved.

5.

© 2011 Microsoft Corporation. All rights reserved.

6.

Microsoft Visual Studio の開発部門では、 大きく変わる開発チームに最高の開発プラットフォームを提供するという 価値 を継続し続けるために、幾度となく 改善活動 を行っています。 本セッションでは、Quality を価値と定めて、開発部門が実施したこと、 – Code Complete から Feature Complete への意識の改革 – Quality Gate – チーム開発基盤 と テスト自動化 の整備 について、皆様と共有いたします。 アジャイル プラクティス の積極採用と テーラリング、大規模開発での 透明性の確保、バグ負債 を10分の1に 削減、イテレーションの 期間を 半減 させた実話をお伝えします。 © 2011 Microsoft Corporation. All rights reserved.

7.

© 2011 Microsoft Corporation. All rights reserved.

8.

あらゆる開発に適用できるフレームワークと開発支援ツールを 開発チームに提供し続ける Integrated Development Environment Application Lifecycle Management 開発者の生産性の向上と 開発者同士のコラボレーション 開発チームの生産性の向上と チーム コラボレーション © 2011 Microsoft Corporation. All rights reserved.

9.

あらゆる開発に適用できるフレームワークと開発支援ツールを 開発チームに提供し続ける Integrated Development Environment Application Lifecycle Management Microsoft® Test Manager eclipse 開発者の生産性の向上と 開発者同士のコラボレーション 開発チームの生産性の向上と チーム コラボレーション © 2011 Microsoft Corporation. All rights reserved.

10.

メジャー リリース サービス パック CTP Beta RC サービス パック 次期メジャー リリース Hot Fix Feature Pack CTP/Beta リリース Power Tools © 2011 Microsoft Corporation. All rights reserved.

11.

“7” の力 © 2011 Microsoft Corporation. All rights reserved.

12.

“7” の力 © 2011 Microsoft Corporation. All rights reserved.

13.

© 2011 Microsoft Corporation. All rights reserved.

14.

© 2011 Microsoft Corporation. All rights reserved.

15.

本日のテーマ: クオリティ & テスト © 2011 Microsoft Corporation. All rights reserved.

16.

© 2011 Microsoft Corporation. All rights reserved.

17.

開発し続けるための決断 (背景) 改善の 現場 事件の 現場 2010 2005 IDE 機能 IDE 拡張 IDE 機能 IDE For Architects, Developers, Testers ALM 機能 IDE 機能 & 拡張 2008 Test Pro 機能 IDE 機能 IDE 拡張 For Architecture, Development, Test ALM 機能 テスト仮想化 ALM 機能 ALM © 2011 Microsoft Corporation. All rights reserved.

18.

開発し続けるための決断 (背景) 2010 2005 IDE 機能 IDE 拡張 IDE 機能 IDE For Architects, Developers, Testers ALM 機能  2 年単位でのリリース IDE 機能 & 拡張  機能大幅増加に関わらず 2008 IDE 機能 Test Pro 機能 ALM 機能 IDE 拡張 テスト仮想化  より多くのチーム開発機能 For Architecture, Development, Test  品質基準を満たせず ALM 機能  リリースを延期 ALM © 2011 Microsoft Corporation. All rights reserved.

19.

© 2011 Microsoft Corporation. All rights reserved.

20.

開発し続けるための決断 (取り組み) 2010 2005 IDE 機能 IDE 拡張 IDE 機能 IDE For Architects, Developers, Testers ALM 機能 IDE 機能 & 拡張 2008 Test Pro 機能 IDE 機能 IDE 拡張 For Architecture, Development, Test ALM 機能 テスト仮想化 ALM 機能 ALM © 2011 Microsoft Corporation. All rights reserved.

21.

開発し続けるための決断 (取り組み) 価値ある機能を提供 2005 IDE 機能 IDE 拡張 IDE 機能 For Architects, Developers, Testers ALM 機能 2008 2010 IDE 機能 & 拡張 Test Pro 機能 IDE 機能 タイムリーに提供 IDE 拡張 For Architecture, Development, Test ALM 機能 テスト仮想化 価値 (品質) の向上 ALM 機能 透明性とアジリティ IDE ALM © 2011 Microsoft Corporation. All rights reserved.

22.

開発し続けるための決断 (成果) Visual Studio 2005 beta 1 Debt 2005 IDE 機能 IDE 拡張 IDE 機能 IDE For Architects, Developers, Testers ALM 機能 Visual Studio 2008 beta 1 Debt 2008 2010 IDE 機能 & 拡張 Test Pro 機能 IDE 機能 IDE 拡張 For Architecture, Development, Test ALM 機能 テスト仮想化 ALM 機能 ALM © 2011 Microsoft Corporation. All rights reserved.

23.

開発し続けるための決断 (成果) 2010 2005 IDE 機能 IDE 拡張 IDE 機能 IDE For Architects, Developers, Testers ALM 機能 IDE 機能 & 拡張 2008 Test Pro 機能 IDE 機能 IDE 拡張 For Architecture, Development, Test ALM 機能 テスト仮想化 ALM 機能 ALM © 2011 Microsoft Corporation. All rights reserved.

24.

© 2011 Microsoft Corporation. All rights reserved.

25.

Plan Task 1 Task 2 Value Remaining Work 価値感の源泉  従来型の手法。タスクを分解し (WBS) 完了を計測  提供可能な “顧客価値” の増分で計算  原価計算  リーン生産と制約条件理論 (TOC) “価値” を基準とし、高めていく:  定義:  やり方:  測定法: 投資収益率、信頼関係、透明性、個人力、責任の共有、状況に応じた戦略 価値に基づく組織運営、意思決定 タスク達成率より、価値を測定 アジャイル プロジェクト マネージメント宣言 「相互依存宣言 (Declaration of Interdependence)」 http://www.pmdoi.org/ © 2011 Microsoft Corporation. All rights reserved.

26.

価値の流れをつくる © 2011 Microsoft Corporation. All rights reserved.

27.

Milestone of Quality  “負債” を理解する  テストの自動化の促進  製品コード バグの把握  テストケース バグの把握  テスト環境のバグの把握  “負債” の共通認識  “負債” のコスト  “品質” の測定  迅速かつ、一貫して実施  いつでも、どこでも  早期からの “品質” の作りこみ  ゆとりを取り戻す  “負債” の撲滅 © 2011 Microsoft Corporation. All rights reserved.

28.

Executive Sponsorship • 新規の開発を 4 ヵ月間 停止 – 文化の見直し • Code Complete  Feature Complete • Definitions of “Done” (Quality Gates) – 徹底的な効率化 • チーム開発基盤の整備 • さらなるテスト自動化 © 2011 Microsoft Corporation. All rights reserved.

29.

Initiative © 2011 Microsoft Corporation. All rights reserved.

30.

Initiative © 2011 Microsoft Corporation. All rights reserved.

31.

Initiative | Feature Complete 物理的な組織体系 PM* Group Dev Group Test Group 1人 4 人以下 4 人以下 バーチャルなチーム *Program Manager Feature #1 Feature #2 Feature #3 XP Scrum Waterfall  Feature Complete を目的としたチームとやり方の委譲  キャリア モデルの分離 © 2011 Microsoft Corporation. All rights reserved.

32.

Initiative | Feature Complete リリース計画 ビジョンや主要なテーマ 反復計画と実施 ユーザーにとっての投資効果 顧客価値の大きいエリア テーマ: ユーザーが顧客価値を高めるための製品活用法 シナリオの実現解 ユーザー ストーリー Experience から導き出されたもの © 2011 Microsoft Corporation. All rights reserved.

33.

User Feedback ストーリーボード シナリオベースの ユーザーフィードバック の機会 ※資料一般公開にあたり、写真は加工しています。 © 2011 Microsoft Corporation. All rights reserved.

34.

Voting Sheets Importance to your business Most important Least important (mark with 'x') (mark with 'x') Pain Satisfaction with Existing Notes Does the existing functionality meet your needs? Yes No Don't know Once I work with something I can’t find it again I can’t tell what changed from build to build, especially over time I don’t know who is the expert of a given area I need another pair of eyes on my code © 2011 Microsoft Corporation. All rights reserved.

35.

Initiative | チーム開発基盤 © 2011 Microsoft Corporation. All rights reserved.

36.

Initiative | チーム開発基盤 Dog Fooding: 開発しながら自らが利用し、フィードバックし続ける © 2011 Microsoft Corporation. All rights reserved.

37.

Initiative | チーム開発基盤 Scenario Experience Task Bug Feature © 2011 Microsoft Corporation. All rights reserved.

38.

Initiative | Feature Complete 意思決定 情報共有 © 2011 Microsoft Corporation. All rights reserved.

39.

Initiative | Feature Complete チーム キャパシティ  Yellow: 70 %以上  Red: 100 %以上 © 2011 Microsoft Corporation. All rights reserved.

40.

Initiative | Feature Complete Risk Level Green: 予定通り Yellow: リスクを伴う Red: 想定外 (間に合わない) © 2011 Microsoft Corporation. All rights reserved.

41.

Initiative | Feature Complete  Feature の完成に向けた作業見積り  コードの完成で見積もらない  段階的なコミット  自動 単体テストも作成  Feature のテストを作成  シナリオ テストは後でもよい  前倒しで、品質を作り込む ~ Feature の完成前に実施  脅威分析と Feature レベルのテストを必ず実施  より多くのバグを発見し、修正 © 2011 Microsoft Corporation. All rights reserved.

42.

Initiative | Definitions of “Done”  Feature の完成に向けた作業見積り  コードの完成で見積もらない  段階的なコミット  自動 単体テストも作成  Feature のテストを作成  シナリオ テストは後でもよい  前倒しで、品質を作り込む ~ Feature の完成前に実施  脅威分析と Feature レベルのテストを必ず実施  より多くのバグを発見し、修正 © 2011 Microsoft Corporation. All rights reserved.

43.

Initiative | Definitions of “Done” We’re done.  Feature の完成に向けた作業見積りFeature ごとの  コードの完成で見積もらない  期日のコミット  段階的なコミット  品質基準の達成と進捗 I’m done.  自動 単体テストも作成  Feature のテストを作成 Task 個人レベルはチームで決定  シナリオ テストは後でもよい  開発プロセス  タスクの粒度、進捗  前倒しで、品質を作り込む ~ Feature の完成前に実施  脅威分析と Feature レベルのテストを必ず実施  より多くのバグを発見し、修正無理なマイクロ マネージメントを行わない Source  チームに権限を委譲 Test Code  チームの自己組織化を推進 Code © 2011 Microsoft Corporation. All rights reserved.

44.

Initiative | Definitions of “Done” Task Task Task 各 Feature の進捗 Feature 単位での報告義務 (タスク レベルは Team の方針による) Product Unit の進捗 ビジネスの進捗 © 2011 Microsoft Corporation. All rights reserved.

45.

Initiative | Definitions of “Done” © 2011 Microsoft Corporation. All rights reserved.

46.

Initiative | Definitions of “Done” © 2011 Microsoft Corporation. All rights reserved.

47.

Initiative | Definitions of “Done” 自動テストによる コードのカバレッジ率が 70 % を超えていること © 2011 Microsoft Corporation. All rights reserved.

48.

Initiative | Definitions of “Done” © 2011 Microsoft Corporation. All rights reserved.

49.

Initiative | Definitions of “Done” © 2011 Microsoft Corporation. All rights reserved.

50.

Initiative | Definitions of “Done” CP#0 CP#1 CP#2 コミット Feature ブランチ Check Point #1 Check Point 見積り コミット 見積り 再見積り コミット Check Point: マネージャとの レビュー/フィードバック/意思決定の機会 #2 実施計画レビュー 実施内容レビュー どのように計画し たのかを説明 何を実施したのか を説明 Feature のデモ © 2011 Microsoft Corporation. All rights reserved.

51.

Initiative | Definitions of “Done”  夜間テスト  フル自動テスト - CTP, Beta, RTM, (Daily, Weekly Coverage runs) Build Verification Tests     夜間テスト フル自動テスト ー Main へマージ前に実施 統合テストと、探索的テスト パフォーマンスとストレス テスト Quality Gates     開発したテストの実施 探索的テスト 回帰テスト 夜間テスト © 2011 Microsoft Corporation. All rights reserved.

52.

公開向け資料用補足スライド • 以下4スライドには、 – 米MSで自分たちのために開発したテストの効 率化のためのツール/方法について触れていま す。 – これらはすでに Visual Studio 2010 の機能と して実装されており、その動画へのリンクも記 載してあります。 クリックすることで、SlidesShare で公開 しているデモ動画にアクセスできます。 © 2011 Microsoft Corporation. All rights reserved.

53.

Initiative | Definitions of “Done”     自動ビルドの仕組み 継続的インテグレーションの進化形 自動ビルド、テストで失敗の場合は、チェックインをさせない Quality Gates を自動化 継続的インテグレーション: 開発者環境 ソース管理 ビルド/検証 ゲート チェックイン: 開発者環境 ソース管理 ビルド/検証 © 2011 Microsoft Corporation. All rights reserved.

54.

Initiative | Definitions of “Done”  開発者による単体テスト実行や自動ビルド時のテスト実行を記録  ソースコード/テストコードの変更時に、検討すべきコードを自動検出 開発者環境 ソース管理 ビルド/検証 ソースとテストの関係を自動記録 開発時に検証すべきテストを一覧で通知 © 2011 Microsoft Corporation. All rights reserved.

55.

Initiative | Definitions of “Done”  手動テスト時の結果を自動記録  画面ショット、操作ビデオ、操作手順、システム情報  2回目以降のテストを自動化  自動ビルドでテスト実行  バグの自動起票による開発者とテスターのやり取りの効率化 手動テスト の自動化 手動テスト バグ起票と更新 検証に 組み込む 手動テスト 開発者環境 ソース管理 ビルド/検証 © 2011 Microsoft Corporation. All rights reserved.

56.

Initiative | Definitions of “Done”  テスト環境を動的に構築しテスターに提供  問題発生時に、テスト環境を開発者に瞬時に提供 開発者環境 ソース管理 ビルド/検証 C B D 手動テスト バグ起票と更新 仮想テスト環境 © 2011 Microsoft Corporation. All rights reserved.

57.

Initiative | Definitions of “Done”  夜間テスト  フル自動テスト - CTP, Beta, RTM, (Daily, Weekly Coverage runs) Build Verification Tests     夜間テスト フル自動テスト ー Main へマージ前に実施 統合テストと、探索的テスト パフォーマンスとストレス テスト Quality Gates     開発したテストの実施 探索的テスト 回帰テスト 夜間テスト © 2011 Microsoft Corporation. All rights reserved.

58.

© 2011 Microsoft Corporation. All rights reserved.

59.

まとめ  すべての “負債” の排除  ビジョンの明確化  フィーチャー クルーと “Done” の定義  ブランチ戦略および、テスト環境の整備  透明性の確保と維持  チームの自律とレポートの集中化  各段階でのユーザー フィードバック  反復的な計画 © 2011 Microsoft Corporation. All rights reserved.

60.

まとめ • 意思決定” に効果を発揮 – 透明性と傾向分析 – 統括的なリーダーシップの意思決定 – 実測駆動な状況把握 – 自律したチームによる意思決定 – チームの自主的な報告 – 主要なメトリックスの自動追跡 © 2011 Microsoft Corporation. All rights reserved.

61.

Team Foundation Server 適用プロジェクトの急増 各製品の利用者数の推移 © 2011 Microsoft Corporation. All rights reserved.

62.

Team Foundation Server 現在の開発者数 作業項目数 ソースファイル数 ビルド数 10 以上の 開発拠点 3,839 839,595 826,234,724 2,010/月 2010 年 5 月 現在 © 2011 Microsoft Corporation. All rights reserved.

63.

Team Foundation Server © 2011 Microsoft Corporation. All rights reserved.

64.

まとめ © 2011 Microsoft Corporation. All rights reserved.

65.

まとめ  尊敬と結束  透明性はすべてに役に立つ  チームと組織のサイズ  チームは、9 人まで  組織は、できるだけ 160 人以内の単位  Dunber’s Number  Scenario を目安に組織化  変化を作る © 2011 Microsoft Corporation. All rights reserved.

66.

まとめ © 2011 Microsoft Corporation. All rights reserved.

67.

まとめ Keep It Simple Stupid.  複雑さの軽減に注力  シンプルにスタート  小さくスタート  常によりよいものを  誤りは正す  アジャイルなプロセスを 作成すること  K.I.S.S. を忘れないこと  リアルなデータで価値を 示す  一目で理解できるレポー トを作成  早い段階から巻き込む  「それをやろう」と言っ てもらう  成功するための人員を確 保してもらう © 2011 Microsoft Corporation. All rights reserved.

68.

[email protected] © 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows 7, Visual Studio and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2011 Microsoft Corporation. All rights reserved.