Empty generated settings file

Empty generated settings file

Hi,

I tried to use the //s parameter to generate a settings file, but the generated file is empty (2 bytes size).

The command line is like : NCover.console.exe nunit-console.exe project.nunit /xml:nunit-results.xml /nologo /noshadow //x Coverage.xml //l Coverage.log //s NCoverSettings.xml

What is the problem with the //s parameter ?

Nico


RE: Empty generated settings file

Nico,

NCover should print on the cosole the the location and filename of the settings file it will write to. Is it writing to the same file?

Stephen


RE: Empty generated settings file

Yes, NCover is printing the correct location and filename, and it really creates that file, but empty.

D:\CruiseControl.NET\Project\trunk\Dev\Project>"C:\Program Files\NCover\NCover.Console.exe"
  "C:\Program Files\NUnit 2.4.7\bin\nunit-console.exe" Project.nunit
  /xml:nunit-results.xml /nologo /noshadow
  //x Coverage.xml //l Coverage.log //s NCoverSettings.xml
NCover.Console v2.1.0 (Administrator x86) - Code Coverage Analysis for .NET
Copyright (c) 2008 Gnoso Inc.
http://www.ncover.com

Registered to Customer #: 9508
NCover Enterprise Edition (1 User)
17 days left in the trial period.

Command: C:\Program Files\NUnit 2.4.7\bin\nunit-console.exe
Command Args: "Project.nunit" "/xml:nunit-results.xml" "/nologo" "/noshadow"
Working Directory:
Assemblies:

******************* Program Output *******************
.........
Tests run: 9, Failures: 0, Not run: 0, Time: 0.625 seconds


***************** End Program Output *****************

Execution Time: 00:00:02.2809580s
Sequence Point Coverage: 13,8%
Branch Coverage: 8,6%

Coverage Xml: D:\CruiseControl.NET\Project\trunk\Dev\Project\Coverage.xml
Coverage Log: D:\CruiseControl.NET\Project\trunk\Dev\Project\Coverage.log
Saved Settings File: D:\CruiseControl.NET\Project\trunk\Dev\Project\NCoverSettings.xml

D:\CruiseControl.NET\Project\trunk\Dev\Project>

The console output seems fine, it's just that NCoverSettings.xml is created but it's only a 2 bytes file.

Nico