-
Notifications
You must be signed in to change notification settings - Fork 98
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
Added the singleRun parameter to group all results into a single testrail run #31
base: master
Are you sure you want to change the base?
Conversation
…'t split on spec files - Added [editorconfig](https://editorconfig.org/) and [Prettier](https://prettier.io/) - cleaned up some code
@Mastermindzh Although I think adding the editorconfig and prettier files is a good thing, it distracts from the real code changes. Maybe split the PR or move it to it's own commit so you can ignore the style changes. |
.prettierrc.js
Outdated
@@ -0,0 +1,43 @@ | |||
odule.exports = { |
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.
Missing the m
here?
@Mastermindzh Could you explain this a little bit?
Will this make them run faster or just reduce amount of "spam" results in Testrail? |
Does anyone know why/how the /dist folder's now being tracked? Aren't all the files inside just outputs from /src/lib source files? |
@AimedNuu, Less spam. It doesn't affect speed. Thus... for 3 test files (which our example project has) there were 3 test runs (something like 60%-20%-20%, making 100% alltogether) instead of 1 that totalled 100%. *
I can confirm that it is being built from the src/lib files. There is (probably) no reason to include them here. |
I have nothing to add to the code here. But it was not a nice review experience due to editoconfig style fixes mixed with the actual code change : / |
I see no particular reason for that. Seems like it was never added to the |
@Mastermindzh this pr will be incredibly helpful if merged and approved. One end user note would be to specify the expected string values in the README for
|
Hey,
By default this reporter creates multiple runs for every .spec file that is ran through cypress.
This results in a LOT of runs in Testrail In our test project we already have 3 runs based on the 3 simple test files:
With this change, if people add the
singleRun: true
parameter to the reporter options it will all be grouped into a single run instead:This makes, i.m.o, the runs way smoother.
Everything should be backwards compatible so I only increased the minor version.
In doing this I also did some other stuff:
--spec
argument it would always close the run after the first file (because it found 0 files)