c# - Teamcity Nunit 3.0 Console Runner not working -
i trying use nunit 3.0 console runner teamcity. here confiuration.
when run configuration, following error
> run unit tests (nunit) (1s) [10:44:03][step 3/3] ##teamcity[buildstatisticvalue key='buildstageduration:buildsteprunner_3' value='0.0'] [10:44:03][step 3/3] starting: c:\teamcity\buildagent\work\e6cc09e5f0da4a07\libs\nunit.console.3.0.1\tools\nunit3-console.exe c:\teamcity\buildagent\temp\buildtmp\o1yaiplezg1cm2nfztd88h0nb2q14zof.nunit --work=c:\teamcity\buildagent\work\e6cc09e5f0da4a07 --noresult --noheader [10:44:03][step 3/3] in directory: c:\teamcity\buildagent\work\e6cc09e5f0da4a07 [10:44:03][step 3/3] runtime environment [10:44:03][step 3/3] os version: microsoft windows nt 10.0.10586.0 [10:44:03][step 3/3] clr version: 4.0.30319.42000 [10:44:03][step 3/3] [10:44:03][step 3/3] test files [10:44:03][step 3/3] c:\teamcity\buildagent\temp\buildtmp\o1yaiplezg1cm2nfztd88h0nb2q14zof.nunit [10:44:03][step 3/3] [10:44:04][step 3/3] [10:44:04][step 3/3] errors , failures [10:44:04][step 3/3] [10:44:04][step 3/3] 1) invalid : c:\teamcity\buildagent\temp\buildtmp\o1yaiplezg1cm2nfztd88h0nb2q14zof.nunit [10:44:04][step 3/3] format of executable (.exe) or library (.dll) invalid. [10:44:04][step 3/3] [10:44:04][step 3/3] test run summary [10:44:04][step 3/3] overall result: failed [10:44:04][step 3/3] tests run: 0, passed: 0, errors: 0, failures: 0, inconclusive: 0 [10:44:04][step 3/3] not run: 0, invalid: 0, ignored: 0, explicit: 0, skipped: 0 [10:44:04][step 3/3] start time: 2016-02-08 02:44:04z [10:44:04][step 3/3] end time: 2016-02-08 02:44:04z [10:44:04][step 3/3] duration: 0.006 seconds [10:44:04][step 3/3] [10:44:04][step 3/3] process exited code -2 [10:44:04][step 3/3] ##teamcity[buildstatisticvalue key='buildstageduration:buildsteprunner_3' value='1095.0'] [10:44:04][step 3/3] step run unit tests (nunit) failed
from error, guessing cannot find dll run tests have checked path , file in checkout directory, seems correct. kindly tell me doing wrong?
run manually tests using commands team city using:
in directory c:\teamcity\buildagent\work\e6cc09e5f0da4a07 run : c:\teamcity\buildagent\work\e6cc09e5f0da4a07\libs\nunit.console.3.0.1\tools\nunit3-console.exe c:\teamcity\buildagent\temp\buildtmp\o1yaiplezg1cm2nfztd88h0nb2q14zof.nunit --work=c:\teamcity\buildagent\work\e6cc09e5f0da4a07 --noresult --noheader
see https://github.com/nunit/docs/wiki/console-command-line more parameters
you more information out of if increase tracing information.
also, there if you're running code coverage using jetbrains dotcover, fail if tests succeed. try disabling code coverage if that's case.
Comments
Post a Comment