nunit / teamcity-event-listener

NUnit Engine extension that helps integration with teamcity
MIT License
11 stars 10 forks source link

Support suite patterns #67

Closed NikolayPianikov closed 5 years ago

NikolayPianikov commented 5 years ago

In cases when there are assemblies like 'x86\abc.dll', 'x64\abc.dll', 'net45\abc.dll' or 'netcoreapp2.2\abc.dll' and so on and suite tests should be treated as different tests we should have the environment variable TEAMCITY_NUNIT_SUITE_PATTERN to change the reporting suite names. For instance we could set an environment variable: SET TEAMCITY_NUNIT_SUITE_PATTERN=x86_{n} for x86 tests and SET TEAMCITY_NUNIT_SUITE_PATTERN=x64_{n} for x86 tests. Where {n} will be replaced by default suite name, for instance abc.dll. If the environment variable TEAMCITY_NUNIT_SUITE_PATTERN was not specified or was empty the replacement is not working and suites have default names like abc.dll.

NikolayPianikov commented 5 years ago

Replacements: {n} - default suite name (for instance abc.dll) {a} - assembly name (default suite name without extension, for instance abc)