← Back to team overview

nunit-core team mailing list archive

[Bug 1029941] Re: Missing basepath and privatebinpath arguments in nunit-console

 

I'm doubtful about this feature, although your patch appears to work
cleanly. In general, we place settings that are required to run a set of
tests in the NUnit project file, while the command line is used for
settings that may change from run to run. The basepath and
privatebinpath are in the  first category and so are handled in the
project file. Have you tried that approach? Here's a simple example for
the case of a single assembly:

<NUnitProject>
  <Settings appbase="your/application/base" />
  <Config name="Default" binpath="one/path;another/path">
    <assembly path="your/test/assembly" />
  </Config>
</NUnitProject>

The private binpath is relative to the basepath. All other paths are
relative to the location of the .nunit file itself. The basepath
defaults to the location of the .nunit file. You can create the file in
any text editor, from the NUnit gui or by running the nunit-editor
executable.

I'm not rejecting your patch at this time, in case you have reasons why
the usual approach won't work for you. However, I don't want to add new
options to the command line without good reason.

-- 
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/1029941

Title:
  Missing basepath and privatebinpath arguments in nunit-console

Status in NUnit V2 Test Framework:
  New

Bug description:
  I'm using the basepath and privatebinpath option when running unit
  tests programmatic on assembly level and the nunit-console application
  are missing these arguments. See attached patch files (zip) for
  suggested implementation.

  thanks
  Patrik

To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/1029941/+subscriptions


Follow ups

References