Pytorch-NLU
Pytorch-NLU copied to clipboard
Cannot get root-cause to work with jest-circus
I'd like to use jest.retryTimes()
but that requires the circus runner.
The Root Cause docs suggest it needs jasmine2
: https://help.testim.io/docs/getting-started-with-root-cause#test-runner-mode-setup
I did see https://github.com/testimio/root-cause/pull/55 which seems to add support for circus, but when I follow https://github.com/testimio/root-cause/pull/55/files#diff-c0c48d2d9bb3d94e663e5058180363262a1b0193aa89d34c18cff0af38227ff2R71-R77 I get this warning on all runs:
(node:65990) UnhandledPromiseRejectionWarning: TypeError: this.summaryReporter.onTestCaseResult is not a function
at EnhancedDefault.onTestCaseResult (/Users/fokkezb/Code/workflows/node_modules/@testim/root-cause-jest/lib/reporter/default.js:70:30)
at ReporterDispatcher.onTestCaseResult (/Users/fokkezb/Code/workflows/node_modules/jest-cli/node_modules/@jest/core/build/ReporterDispatcher.js:78:24)
at /Users/fokkezb/Code/workflows/node_modules/jest-cli/node_modules/@jest/core/build/TestScheduler.js:317:36
at /Users/fokkezb/Code/workflows/node_modules/emittery/index.js:260:13
at Array.map (<anonymous>)
at Emittery.Typed.emit (/Users/fokkezb/Code/workflows/node_modules/emittery/index.js:258:23)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:65990) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 7)
(node:65990) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
And on failed runs it doesn't retry but errors with:
To open in Root Cause viewer, run: npx root-cause show 2f9d8ed8e31fb646356e27d28f652f0a
TypeError: this.summaryReporter.onTestCaseResult is not a function
at EnhancedDefault.onTestCaseResult (../../../node_modules/@testim/root-cause-jest/lib/reporter/default.js:70:30)
at ../../../node_modules/emittery/index.js:260:13
at Array.map (<anonymous>)
at Emittery.Typed.emit (../../../node_modules/emittery/index.js:258:23)
at processTicksAndRejections (../internal/process/task_queues.js:93:5)'
When do you expect to provide full and official support for the circus runner?
Maybe @Bnaya remembers?