Run tests against Debug then Deploy Release Build?

Scott Semyan's Avatar

Scott Semyan

03 Feb, 2015 12:45 AM

Hello, we want to build and run tests against the "Debug" build, and then IF the tests pass, rebuild as Release and then deploy that. Do I need so create two separate projects for this? I am just using the UI, not the YML config files...

  1. Support Staff 1 Posted by Feodor Fitsner on 03 Feb, 2015 02:30 AM

    Feodor Fitsner's Avatar

    Hi Scott,

    I'd implement that scenario with a simple build script (sequence) in a single project (pseudo code):

    - msbuild <solution> in Debug configuration
    - run tests for <assembly>
    - msbuild <solution> in Release configuration
    - [push artifacts](
    - deploy artifact(s)

    This case if either Debug build fails or tests fail the entire build will be terminated immediately.

    Let me know if you have any questions.

  2. 2 Posted by Scott on 03 Feb, 2015 06:00 PM

    Scott's Avatar

    Not sure what you mean by script? You mean like a NAnt script? Do you have any examples?

    Is there not a way to achieve this using the UI?

  3. Support Staff 3 Posted by Feodor Fitsner on 03 Feb, 2015 06:03 PM

    Feodor Fitsner's Avatar

    I meant you switch Build mode to "Script" and just put those commands in there.

    Alternatively, you could have two jobs under the same build: one for Debug and the second for Release. Then do deploy manually the artifact from Release job.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

22 Mar, 2019 07:18 PM
22 Mar, 2019 02:20 PM
22 Mar, 2019 11:00 AM
22 Mar, 2019 02:51 AM
22 Mar, 2019 12:46 AM


21 Mar, 2019 08:34 PM
21 Mar, 2019 05:38 PM
21 Mar, 2019 06:16 AM
20 Mar, 2019 11:39 PM
20 Mar, 2019 09:03 PM
20 Mar, 2019 08:55 PM