Teamcity NUnit Trials - No Meetings Found

I am trying to configure TeamCity for a project. I want to run a scheduled build, which includes the stage where the NUnit tests are run.

My NUnit build step is as follows:

Runtime: NUnit-2.6.3 v4.0 MSIL Run tests on: **/Tests/*.dll Execute: If all previous steps finished successfully 

But every time I run the assembly, I get an error message:

No assemblies were found.

Why is this happening and how can I fix it? In addition, conceptually, this assembly step will take place before the project is actually built. But how will there be any test DLLs (assemblies), unless the project is built in the first place?

+6
source share
1 answer

I would suggest that you create your projects before running the tests. The most common way to achieve this is that you have separate configurations for building code and running tests.

Your assembly configuration will create artifacts (most likely contain assemblies).

The test run configuration will extract this package of artifacts through artifact dependency, and then at the build stage you run tests from a specific assembly.

This is the most common approach and using this approach you do not need to worry about files in the file system. Teamcity snapshot dependency and artifacts will take care of this (if configured correctly)

If you need an example on how to do this, let me know.

+10
source

Source: https://habr.com/ru/post/971661/


All Articles