That seems like a bug to me. Would you please file a bug report
at http://bugs.launchpad.net/nunitv2?
That said, I would not normally use a solution file at the command line,
but would open it in the gui and save it as a .nunit project file. If you
do that, you can remove the projects that should not be in release
as well as the non-test projects.
Charlie
> --
> You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
> To post to this group, send email to nunit-...@googlegroups.com.
> To unsubscribe from this group, send email to nunit-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nunit-discuss?hl=en.
>
>
> Bug report filed & thanks for the hint of opening the .sln file in the
> nunit-gui. I didn't know this was possible! (File -> Open Project...
> only lists *.nunit,*.dll,*.exe by default)
Great! We'll consider this for NUnit 2.6.
Regarding listing .sln, .csproj, etc. ... that's part of NUnit's support
for Visual Studio, which is not enabled by default. See the
Tools | Settings menu item.
> Concerning the .nunit file - actually a custom .nunit file was the
> first thing I tried. But then I became a bit worried that people will
> forget to add new test projects to the .nunit file (which would cause
> the tests to not be seen by the build server). It seems like a bit of
> a redundancy since the projects that shouldn't be built are already
> listed in the .sln file.
It seems really unlikely that you could forget an entire test assembly
for very long. If your test results are visible to the team - as they
should be - somebody is bound to notice. Of course, the .nunit
file should be checked in, just like the solution file.
> Using the .nunit file might have a performance advantage. One of my
> solutions contains 65 projects. Running the tests using the .sln file
> takes about 15 seconds longer than running them with a .nunit file
> that only contains the test projects. I'm still wondering if I should
> trade 15 seconds per build (on a build server) for the convenience of
> not being able to forget to add new test projects... :)
Most likely, you have lots more product assemblies than test assemblies.
NUnit has to load all those assemblies and go through all the declared
Types to figure out if there are any tests...
Charlie