Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUnit3 using NUnit.ConsoleRunner post v3.2.1 and TeamCity #1212

Closed
danielwertheim opened this issue Sep 6, 2016 · 9 comments
Closed

NUnit3 using NUnit.ConsoleRunner post v3.2.1 and TeamCity #1212

danielwertheim opened this issue Sep 6, 2016 · 9 comments

Comments

@danielwertheim
Copy link

What You Are Seeing?

Using v3.2.1 of the NuGet for NUnit.ConsoleRunner and the settings:

NoResults = true,
NoHeader = true,
TeamCity = true

TeamCity identified and displayed test results. Using v3.4.1 it does not. Not sure if Cake plugin needs to be updated or if it's an NUnit thing.

What is Expected?

Test results to be identified and reported in TeamCity.

What version of Cake are you using?

0.15.2

Are you running on a 32 or 64 bit system?

64

What environment are you running on? Windows? Linux? Mac?

Windows

Are you running on a CI Server? If so, which one?

TeamCity 9.1.1

How Did You Get This To Happen? (Steps to Reproduce)

Upgrade from NUnit.ConsoleRunner v3.2.1 to 3.4.1

@bjorkstromm
Copy link
Member

@danielwertheim did you also install the TeamCity extension for NUnit? As of NUnit 3.4 TeamCity event listener has been separated out of the engine https://github.com/nunit/docs/wiki/Release-Notes

@bjorkstromm
Copy link
Member

@danielwertheim
Copy link
Author

@mholo65 no, wasn't aware. NUnit.Console says included: https://www.nuget.org/packages/NUnit.Console/

Tried to do:

#tool "nuget:?package=NUnit.Extension.TeamCityEventListener"

That should work, no?

@bjorkstromm
Copy link
Member

yep, NUnit.Console includes a lot, in fact its just an empty package which references a bunch of other packages. But since Cake doesn't play nicely with NuGet refernces, you'll have to install the runner (NUnit.ConsoleRunner) + the wanted extensions (e.g. NUnit.Extension.TeamCityEventListener) manually...

@devlead
Copy link
Member

devlead commented Sep 6, 2016

@danielwertheim it won't work as tool currently expects an exe, though once @patriksvensson is finished with #1202 it'll be configurable.
Your options currently are install via package.config and/or via bootstrapper.

@bjorkstromm
Copy link
Member

Btw, don't thinl you can install using the tool directive since Cake requires an exe to be present n the package... Instead you should go for the addin directive. But make sure that the packages are located in the same directory (e.g. tools/ dir) since NUnit requires that... As a last resort you could go for packages.config instead of specifying packages in script file (that's what I'm doing)

@bjorkstromm
Copy link
Member

@devlead missed your comment, but isn't it possible to use addin and have cake install addins to same path as tools? There's a config for that? Writing on phone ( too lazy to check)...

@devlead
Copy link
Member

devlead commented Sep 6, 2016

You could config the paths, but there's no guarantee it'll work as addin assemblies are loaded by cake.

@danielwertheim
Copy link
Author

Used packages.config and then it worked with latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants