Comment 1 for bug 1231877

Revision history for this message
Charlie Poole (charlie.poole) wrote : Re: [Bug 1231877] [NEW] Passing parameters to console runner by file

How would this feature relate to and potentially interact with NUnit projects?

Would some of this info be better added to the NUnit project xml format?

Charlie

On Fri, Sep 27, 2013 at 2:09 AM, Peter Brightman <email address hidden> wrote:
> Public bug reported:
>
> The console runner accepts lots of individual parameters. Model an
> appropriate xml file that allows to define all the individual parameters
> that usually will be passed one by one on the commandline. Give it a
> cardinality of 1..* in order to run the console-runner multiple times
> with varying parameters but within one process. Allow this file to be
> passed as the one and only parameter because it encapsulates all the
> other parameters. Example:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <NUnit-Run>
> <Run-Parameterset name="smoke tests" fixture="this.is.the.smoketest.fixture" dll="mysmoketest.dll">
> <Filter type="Category" mode="include">BaseLine</Filter>
> <Filter type="Category" mode="exclude">Database,Online,Proxy</Filter>
> <Output type="StdOut">{{name}}.txt</Output>
> <Output type="StdErr">{{name}}-errors.txt</Output>
> <Output type="Report">{{name}}-results.xml;test-result-to-html.xsl</Output>
> </Run-Parameterset>
> <Run-Parameterset name="online tests" fixture="this.is.the.onlinetest.fixture" dll="myonlinetest.dll">
> <Filter type="Category" mode="include">BaseLine,Online</Filter>
> <Filter type="Category" mode="exclude">Database</Filter>
> <Output type="StdOut">{{name}}.txt</Output>
> <Output type="StdErr">{{name}}-errors.txt</Output>
> <Output type="Report">{{name}}-results.xml;test-result-to-html.xsl</Output>
> </Run-Parameterset>
> </NUnit-Run>
>
> {{name}} would be a placeholder for the given name of the Run-
> Parameterset (attribute "name")
>
> Now name the file for example my-nunit-runparams.xml and start the
> runner like this:
>
> nunit-console-runner.exe my-nunit-runparams.xml
>
> As mentioned in my other bug-report, embed all the run parameters into
> the resultfile of the test.
>
> ** Affects: nunit-3.0
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to NUnit
> Extended Testing Platform.
> https://bugs.launchpad.net/bugs/1231877
>
> Title:
> Passing parameters to console runner by file
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/nunit-3.0/+bug/1231877/+subscriptions