Running a .Net application from built source so that postman tests can be run against it

Completed

The build configuration is meant to be as follows:

  1. Restore the NuGet packages with NuGet Installer runner
  2. Build the application with .NET CLI (dotnet) runner
  3. Run the module tests using Nunit runner
  4. Run the application on localhost
  5. Run postman test collection against the application running in localhost
  6. Terminate the running application

the problem is that running the application with a .NET CLI runner will stop the build steps as it will not exit until the application is stopped

Is there a way of running the application in a separate process so that it doesn't stop the build steps?

0
1 comment

Hi Stefan,

 

This is actually a windows issue, not specific to TeamCity. You can usually start new applications as a separate process using the "start" command, often with the "/B" parameter. Could you check if that works for you?

0

Please sign in to leave a comment.