+ All Categories
Home > Business > VS TFS 2010 - Part2

VS TFS 2010 - Part2

Date post: 13-Dec-2014
Category:
Upload: dareen-alhiyari
View: 1,425 times
Download: 3 times
Share this document with a friend
Description:
Building Modern Applications with Microsoft Visual Studio 2010 and Team Foundation Server - Part 2
Popular Tags:
34
[PRESENTATION TITLE] [PRESENTATION TITLE] Building Modern Applications with Microsoft Visual Studio 2010 and Team Foundation Server - Part II Microsoft | Open Doo Dareen Alhiyari Technology Special Softact – Jordan [email protected]
Transcript
Page 1: VS TFS 2010 - Part2

Building Modern Applications with Microsoft Visual Studio 2010 and Team Foundation Server - Part II

Microsoft | Open Door

Dareen AlhiyariTechnology SpecialistSoftact – [email protected]

Page 2: VS TFS 2010 - Part2

AgendaSource Code Version Control

Test-Driven Development and Unit Testing

Static Code Analysis

IntelliTrace

Building Code: Team Build

Demo

Summary

Questions

Part II

Page 3: VS TFS 2010 - Part2

Source Code Version Control

Page 4: VS TFS 2010 - Part2

Source Code Version Control• Changesets–Integrated Check-in–Check-in Policies

•Workspaces• Shelving

Key Concepts

Page 5: VS TFS 2010 - Part2

Source Code Version Control

Other Concepts

• Labeling• Compare/Diff–Annotation

• Branching & Merging

Page 6: VS TFS 2010 - Part2

ChangesetsLogical container of data related to check-in• File and branch information• Links to work items• Check-in notes• Comment• Policy compliance• Metadata (date, time, user)• Unit of atomic checkin

Uniquely identified• Numeric identifier• Incremental

Represents a point in time of source repository

Page 7: VS TFS 2010 - Part2

Integrated Check-inAtomic• A changeset is guaranteed to have all changes from a check-in

Integrated• Check-in policy applied (but override-able)• Work Items associated• Builds associated with Work Items• Check-in notes• All related to changeset• Pending Check-in Window• Notification possibilities

Check-in Policy• Customizable, extensible

Page 8: VS TFS 2010 - Part2

Check-in Policies• Requirements for Check-in• Overridable• Extensible

CommentsTestingWork Item AssociationCode AnalysisForbidden Files

Page 9: VS TFS 2010 - Part2

Workspaces• Client side copy of source

retrieved from repository• Owned by one user on one

machine• Changes in workspace create

pending changes• Workspace mapping = Repository

folder mapped to local folder

Page 10: VS TFS 2010 - Part2

ShelvingSet aside pending changes without checkin

Optionally revert to unmodified filesRestore shelved changes by “unshelving”Unshelve other user’s changes

Power of task branching with less overhead

Developer

Switch Tasks

Backup Work-In-Progress

Checkpoint Work-In-Progress

Share Work-In-Progress

Perform a Code Review

Scenarios

Page 11: VS TFS 2010 - Part2

Version Control Integration with Other TFS Components

Build

Work Item

Tracking

Process Guidance & Automation

Portal & Reporting

Version Control

• Create various build scenarios• Build reports show associated changeset

• Easily associate code to work items• Provides traceability

Influences version control structure

Automatically impacts velocity, code churn

Page 12: VS TFS 2010 - Part2

Tracking Bugs, Tasks & Other Work Items

Work Item Tracking Data Store

Main Functions:1. Add new or modify work items2. Attach files to work items3. Create links among work items4. Find or list a filtered set of work items

Each work item is assigned:• A unique ID• Work item type• State• Assigned To

Page 13: VS TFS 2010 - Part2

Test-Driven Development

Intellectuals solve problems, geniuses prevent them

- Albert Einstein

Page 14: VS TFS 2010 - Part2

No Test

Page 15: VS TFS 2010 - Part2

How to Use

How to Implement

TDD

Page 16: VS TFS 2010 - Part2

TestingDesign

Implement

Test

Page 17: VS TFS 2010 - Part2

TDDDesign

Test

Implement

Page 18: VS TFS 2010 - Part2

TDDDesign

Test

Implement

Test

Page 19: VS TFS 2010 - Part2

TDDHow to do it• Design: figure out what you want to do• Test: write a test to express the design• It should FAIL• Implement: write the code• Test again• It should PASS

Page 20: VS TFS 2010 - Part2

Time taken to fix bugs

Design Implementation QA Post-Release0

250

500

750

1000

Page 21: VS TFS 2010 - Part2

Unit Testing

Page 22: VS TFS 2010 - Part2

Automated UI TestingCoded UI testing enables you to automate user interface testing in Web and Windows‐based applications. These regression tests ensure that subsequent changes to the code do not break sections that already work.

Page 23: VS TFS 2010 - Part2

Static Code Analysis

Just because it compiles, doesn’t mean it works!

Page 24: VS TFS 2010 - Part2

Static Code Analysis

Page 25: VS TFS 2010 - Part2

Static Code Analysis

Page 26: VS TFS 2010 - Part2

IntilliTraceNO MORE “NO REPRO” BUGS−Rich & Actionable Bugs−Historical record of code

execution.−Like a DVR for debugging.−Examine actual code

execution.

Page 27: VS TFS 2010 - Part2

IntilliTrace

Page 28: VS TFS 2010 - Part2

Building Code

BUILD TARGETS

Clean

Get Source

Label

Compile

Run Tests

Drop Build Files

End to End Iteration

Build Error Build Break

Page 29: VS TFS 2010 - Part2

Building CodeCommonly used targetsTarget Name Description

BeforeEndtoEndIteration Runs tasks before EndToEndIteration target. Use this to run something before the build starts.Example: Turn street light yellow.

AfterEndtoEndIteration Runs tasks after EndToEndIteration target. Use this to run something after the build successfully completes.Example: Copy Binaries and Config Files to MSI, Deploy MSI, Turn on Green Street Light

BeforeTest Called before tests are run.Example: Update or Prepare database or spreadsheet for Unit Tests

AfterOnBuildBreak Called after a work item is created when a build failsExample: Turn on Red Street Light

Page 30: VS TFS 2010 - Part2

Demo

I'm a great believer in luck, and I find the harder I work the more I

have of it.

- Thomas Jefferson

Page 31: VS TFS 2010 - Part2

SummaryTeam Foundation Server (TFS) is the collaboration platform at the core of Microsoft's application lifecycle management solution. TFS automates and streamlines the software delivery process, as well as provides full traceability and real‐time visibility into project status, for all team members, with powerful reporting tools and dashboards.

Page 32: VS TFS 2010 - Part2

Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction

and skillful execution; it represents the wise choice of many

alternatives.- William A. Foster

Thank You!

Page 33: VS TFS 2010 - Part2

© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.

Page 34: VS TFS 2010 - Part2

Contact Info

[email protected]

Questions

Dareen AlhiyariTechnology Specialist

Thank You!


Recommended