cypress-cucumber-preprocessor icon indicating copy to clipboard operation
cypress-cucumber-preprocessor copied to clipboard

Bug - Cucumber reports getting overwritten when a new feature file is executed

Open ShaharM7 opened this issue 1 year ago • 4 comments

Current behavior

When I am running multi-feature files - using a specific config file of cypress:

import {defineConfig} from 'cypress'
import defu from 'defu';
import defaultConfig from "../../cypress.config";

export default defineConfig(
    defu({
            e2e: {
                specPattern: [
                    'cypress/e2e/letters-tests/a-letter-tests/a*'
                ]
            },
        },
        defaultConfig
    )
);

Then after the running, I see the test results generate a JSON file (because I enabled it before), but I run for example 10 tests but I see only one test result - it shows only the last test that was run and not all the tests that were run.

Desired behavior

See in the JSON file report - all the tests that I run for specific cypress config file

Test code to reproduce

Please try to run an example: npx cypress run -b chrome -C cypress/config/a.config.ts the file: a.config.ts you can see above - all the tests are cucumber tests -->

Versions

  • Cypress version - 12.17.4:
  • Preprocessor version - 20.10.0:
  • Node version - 20.11.1:

Checklist

ShaharM7 avatar Jul 07 '24 14:07 ShaharM7

[..] but I run for example 10 tests but I see only one test result

When you say "run 10 tests" here, do you mean invoking $ cypress run (or similar) 10 times?

badeball avatar Jul 07 '24 14:07 badeball

In any case, you need to provide a reproducible example.

badeball avatar Jul 07 '24 15:07 badeball

@badeball I mean that - O run one time :

npx cypress run

And the test result continues only the result of the last test

ShaharM7 avatar Jul 08 '24 06:07 ShaharM7

Then you need to provide a reproducible example that illustrates the issue.

badeball avatar Jul 08 '24 07:07 badeball

Closing due to lack of a reproducible example. Feel free to open up another issue if anything changes in this regard.

badeball avatar Jul 28 '24 19:07 badeball