Skip to content
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

Improve resiliency on --bail #75

Open
noomorph opened this issue Apr 13, 2024 · 1 comment
Open

Improve resiliency on --bail #75

noomorph opened this issue Apr 13, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@noomorph
Copy link
Collaborator

Describe the bug

Sometimes I spectate:

            throw new errors_1.JestMetadataError(`Cannot associate a non-existent metadata with a test case: ${testCaseResult.fullName}`);
                  ^

JestMetadataError: Cannot associate a non-existent metadata with a test case: Status tests Simple passed
    at AssociateMetadata.testCaseResult (/Users/yaroslavs/Projects/wix-incubator/jest-allure2-reporter/node_modules/jest-metadata/dist/jest-reporter/AssociateMetadata.js:21:19)
    at ReporterServer.onTestCaseResult (/Users/yaroslavs/Projects/wix-incubator/jest-allure2-reporter/node_modules/jest-metadata/dist/jest-reporter/ReporterServer.js:64:25)
    at ReporterServer.memoized (/Users/yaroslavs/Projects/wix-incubator/jest-allure2-reporter/node_modules/jest-metadata/dist/utils/memoizeLast.js:11:34)
    at ReporterServer.memoized [as onTestCaseResult] (/Users/yaroslavs/Projects/wix-incubator/jest-allure2-reporter/node_modules/jest-metadata/dist/utils/memoizeArg1.js:12:24)

To Reproduce

Run many suites many times with many workers and --bail.

Expected behavior

This error should not happen. Maybe, jest-metadata should generate a fallback metadata with FallbackAPI despite the full-fledged mode.

@noomorph noomorph added the bug Something isn't working label Apr 13, 2024
@noomorph noomorph self-assigned this Apr 13, 2024
@noomorph
Copy link
Collaborator Author

One more problematic case discovered:

when logs are enabled, we have weird sequence of events

Got 1 times "/Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js"
Called from /Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js
Got 2 times "/Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js"
Got 1 times "/Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js"
Called from /Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js
Got 1 times "/Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js"
Called from /Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js
Got 2 times "/Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js"
Called from /Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js
Got 2 times "/Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js"
Called from /Users/yaroslavs/Projects/wix-incubator/jest-metadata/e2e/__tests__/default/duplicate-generation.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant