modern-laptop-24399
04/23/2022, 3:42 AMpytest-bdd
and generating a cucumber.json report as a result of multiple test files being executed? I'm finding since a pants session is per-file, using the --cucumberjson
option results in pants over-writing the cucumber JSON with the latest test-file execution.happy-kitchen-89482
04/24/2022, 11:38 PM--cucumberjson
points to some global location? Yeah, that won't work. This is similar to coverage reports, which we handle specially, so we might have to do the same here.happy-kitchen-89482
04/24/2022, 11:40 PMhappy-kitchen-89482
04/24/2022, 11:42 PMmodern-laptop-24399
04/25/2022, 4:35 PMsoYeah - I looked at their code. Pretty basic file-write at the end of an execution.points to some global location?--cucumberjson
modern-laptop-24399
04/25/2022, 4:37 PMAlternatively, is having a separate cucumber JSON file per test file useful? Or do they really need to be merged to one file to be of use?Similar to a coverage report, the cucumber report is more useful if it shows everything for sure. FWIW on the npm piece - The
cucumber-html-reporter
piece requires NPM, so perhaps not much by way of overhead.modern-laptop-24399
04/25/2022, 4:52 PMpytest
implementations instead of focusing on migrating to the pants model. #naiveStatementshappy-kitchen-89482
04/25/2022, 5:05 PMmodern-laptop-24399
04/26/2022, 2:57 PMCan you elaborate on what you mean by "holistically"? What would the example be in this case?Sure. When executing
pytest
there is a single session that tests all modules in scope, whereas ./pants test ::
generates a session per python module. I suppose I'm really just speaking to this: https://github.com/pantsbuild/pants/issues/14941modern-laptop-24399
04/26/2022, 2:59 PMAlternatively, is having a separate cucumber JSON file per test file useful? Or do they really need to be merged to one file to be of use?I noticed today an option in the
cucumber-html-reporter
used with pytest-bdd
that there's an option to use jsonDir
to consolidate multiple JSON files... When I get back to this work, I may try this out and statically define a location since ./pants
generates /tmp
dirs per session.
I'll report back what I find.happy-kitchen-89482
04/26/2022, 4:35 PM