26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1. Create a TFSBuild command line as follows:<br />

TfsBuild start <br />

2. Place the command line in a batch file.<br />

3. Create a Windows Scheduled Task that runs the batch file at your desired interval.<br />

For more information and expanded steps, see “How To – Set Up a Scheduled Build <strong>with</strong><br />

<strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong>” in this guide.<br />

Additional Resources<br />

• For more information, see “Chapter 9 – Setting Up a Scheduled Build <strong>with</strong> <strong>Team</strong><br />

Build” in this guide.<br />

How to Decide on a Build Frequency and Type for Your Project<br />

The frequency of your builds is one of the most important decisions to make when<br />

creating a scheduled build.<br />

If you are working on a project that has enough check-ins to cause significant changes<br />

<strong>with</strong>in an hour, and you do not use Continuous Integration (CI) builds, you can choose an<br />

hourly build frequency. Hourly builds provide rapid feedback to developers and can also<br />

be made available to testers and other team members to solicit their feedback.<br />

If you are working on a project that has enough check-ins to cause significant changes<br />

<strong>with</strong>in a day, you can use daily scheduled build frequency because it gives your test and<br />

development teams a new build every morning that incorporates the changes from the<br />

previous day, ready to be tested.<br />

If you are working on a large, complex project where the build time can last for days, you<br />

should opt for weekly builds. This ensures that your test team will have a build at the start<br />

of each week incorporating the changes from the previous week, ready to be tested.<br />

Additional Resources<br />

• For more information about setting up scheduled builds, see “How To – Set Up a<br />

Scheduled Build <strong>with</strong> <strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong>” in this guide.<br />

• For more information, see “Chapter 9 – Setting Up Scheduled Build <strong>with</strong> <strong>Team</strong><br />

Build” in this guide.<br />

Test-Driven <strong>Development</strong><br />

• How to create a “hello world” acceptance test<br />

• How to run automated tests as part of the build<br />

• How to run code analysis as part of the build<br />

• How to get failed tests to fail a build

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!