-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Cucumber JSON Documentation Builder #413
Conversation
merging in tests
catching up the repo
# Conflicts: # src/Pickles/.vs/config/applicationhost.config # src/Pickles/Pickles.Test/Pickles.Test.csproj # src/Pickles/Pickles/Pickles.csproj # src/Pickles/Pickles/PicklesModule.cs
…leting successfully
Thank you for your contribution! I will add some review comments to individual lines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again: thanks for your contribution. In order to keep quality and maintainability high, I requested some changes.
@@ -0,0 +1,36 @@ | |||
using System.Reflection; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use a minimal AssemblyInfo.cs similar to the other projects, and link the VersionInfo.cs file to the project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -35,15 +35,15 @@ public Feature() | |||
|
|||
public string Description { get; set; } | |||
|
|||
public List<IFeatureElement> FeatureElements { get; } | |||
public List<IFeatureElement> FeatureElements { get; private set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The private setter is not needed. Please remove it again.
|
||
public List<Comment> Comments { get; } | ||
public List<Comment> Comments { get; private set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The private setter is not needed. Please remove it again.
|
||
public Scenario Background { get; private set; } | ||
|
||
public TestResult Result { get; set; } | ||
|
||
public List<string> Tags { get; } | ||
public List<string> Tags { get; private set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The private setter is not needed. Please remove it again.
@@ -1,5 +1,5 @@ | |||
$version = $args[0] | |||
$formats = @("Html", "Dhtml", "Word", "Excel", "JSON") | |||
$formats = @("Html", "Dhtml", "Word", "Excel", "JSON", "Cucumber") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add Cucumber to testRunnerCmd.cmd and testRunnerMsBuild.cmd as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted testRunnerCmd.cmd
but did not find where in testRunnerMsBuild.cmd
to make the change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, my mistake - the output formats are defined in testOutput.proj
, not in testRunnersMsBuild.cmd
. Could you make the change there please?
Changes made as requested, glad to be of help. Let me know if anything else should be adjusted. |
Thanks again for your contribution! |
Would you be willing (and have time) to adapt the documentation of Pickles too? It's in the docs repository. |
Sure, let me see if I have some time tonight. |
Done. Please review |
Thanks! |
Ah, apparently approving the reviews does not automatically merge the pull request :-) I merged it now. |
* Fixes hiding topnav when printing. (#411) * Adding Cucumber JSON Documentation Builder (#413) * Adding Cucumber JSON as possible export format * Version * fixing the tests * Fixing unit tests * Separated Cucumber Documentation as separate project * Fixing Build Pipeline * Adding missed build dependency steps * resolved the namespace issues that was preventing the build from completing successfully * Addressing code review comments * adding cucumber output format * Release 2.12.0 (#416) * Adding entries to change log * Bump version (2.12.0) * Version 2.12.0
Released in version 2.12.0. |
Can you please clarify how would you setup SpecFlow to integrate with Pickles, so pickles would output a cucumber json file? |
That's basically it, let me set up a PoC and write back into this chat. |
@dgrekov great, it would be great to have if you can share a working PoC :) |
@dgrekov I think I may have found a problem with the Cucumber JSON output: it seems that for scenario outlines, there is no information about the individual examples. Are you experiencing that as well? Am I missing something? |
@dgrekov were you able to set up the PoC? The online documentation is not very clear on having a full end-to-end example. I can provide you a sample .feature file and the c# class that implements the class under test. |
@bitcoder, sorry for the delay, got a little behind at work. Will try for something soon. |
@dirkrombauts let me look into that. |
Hi @dgrekov, were you able to make a working PoC? |
Sorry guys, did not mean to leave you hanging, had a hard sprint wrapping up today. Will work to get a PoC up for you in a few hours. |
Got my PoC working but all of my results are coming back as inconclusive, need to look into the test harness as to see why. This will be a little bit longer. @bitcoder, you don't need the DLL to make this work. The only thing that is needed is the Feature file directory and the nunit XML result. I will post an example to a repo tomorrow. |
ok @dgrekov, I look forward to see the example :) |
Ok, I found the issue. The standard NUnit (and xUnit) report does not produce step level data, what we need is to tweak the output to include that, I think I have an approach, testing it out and will update you soon. |
Hi @dgrekov , any news about this? Were you able to achieve a working solution? |
Hi, were you able to solve this or make a PoC with this? |
Apologies, I have been pulled into a different effort and was not able to make much progress on this. The changes needed to take advantage of actual test results was very involved and I do not think I will have time in the near future to finish it. Will post back here if I am able to contribute more. |
Will throw my hat in the ring as well. I took the two previously opened and abandoned pull requests and cleaned them up as well as brought them up to the new solution layout.
All Files are committed, all tests pass.