[SpecFlow+ Runner] Create a file that would be used to generate/style a report
Not plannedCreate a file/filetype to generate/style reports.
For example:
{
Features:[{
Path: "features/Calculator.feature",
Name: "Calculator",
ShowDetails: false, removes configuration, test assemblies, and test threads
ShowResults: false, removes Result: 9 success from the output result report
ShowTimeline: false, this removes Test Timeline Summary
ShowResultView: false, this removes Test Result View
ShowSummary: false, removes Feature Summary
ShowErrorSummary: false, removes Error Summary
ShowScenarioSummary: false, removes Scenario Summary
Scenarios:[{
Path: "scenarios/Multiply.scenario" or it would just use parents .feature file and this wouldn't be used
Name: "Multiply Two Numbers",
ShowWhere: false, removes (in ProjectName, FeatureName)
ShowDetails: false, this removes everything but status from ExecutionDetails Scenario bullet info
SeparateSteps: true, adds a blank row between steps
ShowDone: false, removes done message
Steps: [{
Given: { Name:"A number store result in a variable", Trace:"num1 = {step return value}"},
Given: { Name:"A number store result in another variable", Trace:"num2 = {step return value}"},
Then: { Name:"Multiply Numbers", Trace:"Result = {if enumerable/list show as table}"}
}]
}]
}] // Features that aren't present here wouldn't show up in the report
}
In steps {return} would be the token to replace with the return value of the method that represents the step
Example of a step Separation, being that Body shown here is the name given to the Then step, so only add a blank row after the Then step preferably with the two columns merged as 1, showing only a blank row instead of what is seen below:
This would result in a more customizable report.
-
Hi Joao, sorry for the late reply. You would like to customize the layout of the SpecFlow+ LivingDoc LivingDoc.html file, right? What is the use case you are trying to cover with the customization?
0 -
Hi,
No problem, as I said before I wanted it to be more customizable, for example: allow us to separate tracer rows without having to use empty table rows and so on.You can see that I had to do some gymnastics with the reports in order to show the HTML report like that, however, I would still like to be able in some cases for example remove Succeeded in x secs or the step function name or simply add a blank line without having the table borders.
There is also things that you cant remove that I've mentioned in the JSON configuration sample I made up.
In short, I want to make it more readable.
Here is an example of fields that could be configurable to be either set to visible or hidden (PS: removed some infos):0 -
thanks for your detailed feedback, it looks like you are using the SpecFlow+ Runner Reports. I was wrongly assuming you might use SpecFlow+ LivingDoc.
We are currently not planning to further extend the SpecFlow+ Runner Reports and instead shifted our focus on SpecFlow+ LivingDoc, which allows visualizing your Feature Files + possibility to display even test results + execution time. Additionally, it contains a dedicated "Analytics" Section (which is quite basics right now, not configurable and also not covering your request yet). With SpecFlow+ LivingDoc we are trying to simplify the collaboration with non/less-technical team members and stakeholders.
Have you already had a chance to take a look into SpecFlow+ LivingDoc?
0 -
Hi,
Yes, I have but it seems that it is still in its infancy, pardon me if I'm wrong.
It is missing some of the customization features this one has, at least to my knowledge, like being able to write to the reports to describe what is happening in each step such as is in the case above.
PS: I just checked the demo on the page and see that it has improved a bit since I last tried but still seems not to be as customizable as I hoped/needed.0 -
I changed the title from your request to [SpecFlow+ Runner], so that other people can quickly find your request and get the chance to upvote your customization requests.
You are right SpecFlow+ LivingDoc is still in an early stage and we are trying to enhance it together with the SpecFlow community and trying to add the most needed functionalities based on upvotes first.
I will try to keep you informed or subscribe to our newsletter, so you are not missing out on upcoming release notes.
0 -
We are stopping the maintenance of the SpecFlow+ Runner, so I am closing this feature request.
For more details, please have a look at our blog post about it: https://specflow.org/using-specflow/the-retirement-of-specflow-runner/
0
Please sign in to leave a comment.
Comments
6 comments