SpecFlow+ Runner - Using custom template, from CLI --report seemingly ignored
I've built a custom template for reporting, called CustomJsonTemplate.cshtml. When I try and run the tests from the command line, passing in a custom name for the report using the --report tag, the name is always being set to TestRunReport.html. If I just use the default template and not my custom one, then the name is being set correctly. I'm not sure what's causing this to happen.
The command I'm running is this:
C:\Stash\Repo\WebApp\Bdd\Company.Digital.WebApp.Bdd\bin\Dev\net472\SpecFlowPlusRunner\net461\SpecRun.exe run C:\Stash\Repo\WebApp\Bdd\Company.Digital.WebApp.Bdd\Default.srprofile --baseFolder C:\Stash\Repo\WebApp\Bdd\Company.Digital.WebApp.Bdd\bin\Dev\net472 --filter "@Test" --outputFolder C:\Stash\Results --report Custom-Name.html --log Log.log
The template I'm using only has one change from the default template, I've embedded a json output of the results in a hidden div for an automated solution to collect and compare between versions.
SpecRun.SpecFlow Version 3.9.31
SpecRun.Runner Version 3.9.31
Below is the contents of my Default.srprofile file.
<?xml version="1.0" encoding="utf-8"?>
<TestProfile xmlns="http://www.specflow.org/schemas/plus/TestProfile/1.5">
<Settings projectName="Company.Digital.WebApp.Bdd" reportTemplate="CustomJsonTemplate.cshtml"/>
<Execution stopAfterFailures="0" testThreadCount="4" testSchedulingMode="Sequential" retryFor="Failing" retryCount="0"/>
<TestAssemblyPaths>
<TestAssemblyPath>Company.Digital.WebApp.Bdd.dll</TestAssemblyPath>
</TestAssemblyPaths>
<DeploymentTransformation>
<Steps>
</Steps>
</DeploymentTransformation>
</TestProfile>
Please sign in to leave a comment.
Comments
0 comments