Allow MSTest or NUnit or XUNIT to output Cucumber.json format
AnsweredHello Spec flow community,
Recently during the Jan 31 BDD Masterclass, we were told that SpecRun unit test framework will be retired in the future and if we are not actively using SpecRun yet, we should consider switching to MSTest, NUnit or XUnit.
I was wondering if it would be possible to generate a report in a JSON format in MSTEST or NUNIT or XUNIT Unit testing framework.
Cucumber allow this, through the -f or -p option.
We know we could do this with SpecRun (https://support.specflow.org/hc/en-us/community/posts/360012011297-Allow-to-output-the-cucumber-json-format), however we know SpecRun is being retired.
Question 2: If we switch to MSTest or NUnit or XUNIT how can we generate Cucumber JSON report?
-
Hey sandeep hegde,
SpecRun supports .Net 5, this is the last .Net version that will be supported as SpecRun is already retired.
For creating custom reports, I think you would have to create your own custom report generator, unless someone else knows otherwise!
0 -
Hi Jordan Western, I could not find any custom report generator that will create Cucumber.json as an output report format. I believe Cucumber allows this with Cucumber allow this, through the -f or -p option..
Can SpecFlow provide an alternative to provide Cucumber JSON with MSTEST or NUNIT (not that SpecRun is being retired)?
0 -
At the moment we don't plan to write a report generator for the Cucumber Json format.
You would need to do it yourself. As I suggested in https://support.specflow.org/hc/en-us/community/posts/4418398893073-Generating-cucumber-results-file?page=1, one starting point could be a json file, which is created by SpecFlow+ LivingDoc.
1
Please sign in to leave a comment.
Comments
3 comments