Forum Discussion
Is it possible to run VsTest in azure pipelines against pre-installed test project
- Jul 24, 2024
One option I can suggest is you devide the build part (restore and build) to a seperate pipline and add a publish artifact step to publish the built test projects as pipeline artifact. then use a second pipline to run tests with downloading the artifacts from the first pipeline. This way if you do not have a change in your test code you do not have to run the build pipline to produce new test artifacts. You can always run with previously built artifacts. Then when there is a change you can run the build pipline first to get the new smoke test artifacts published.
One option I can suggest is you devide the build part (restore and build) to a seperate pipline and add a publish artifact step to publish the built test projects as pipeline artifact. then use a second pipline to run tests with downloading the artifacts from the first pipeline. This way if you do not have a change in your test code you do not have to run the build pipline to produce new test artifacts. You can always run with previously built artifacts. Then when there is a change you can run the build pipline first to get the new smoke test artifacts published.