Tying into a test suite setup #49
-
Hello, I believe I'm missing a step somewhere. I have the following setup:
which executes fine from the command line, but I'm having trouble getting the file to be read by any of the testing suites using the runner. I have the following in my package.json:
Just getting the following when I try to run the example:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
oddly enough changing the line:
when changed to:
Causes the tests to pass successfully. This has unblocked me for the moment. |
Beta Was this translation helpful? Give feedback.
-
changing the line:
Solves the problem at least more correctly |
Beta Was this translation helpful? Give feedback.
-
Hey, I think the docs for testing integration were outdated 😔 The runner returns the following type: So your code should be looking like this: const { result } = await runFromFile(path.join(__dirname, 'stepci/example.yml')) I'll update the docs, sorry for the inconvenience! |
Beta Was this translation helpful? Give feedback.
-
Update: I have updated the docs for testing framework integration: https://github.com/stepci/stepci/blob/main/docs/using-test-tools.md |
Beta Was this translation helpful? Give feedback.
-
Hey Doug @findheld-doug |
Beta Was this translation helpful? Give feedback.
changing the line:
expect(result.passed).toBe(true)
to
expect(result.result.passed).toBe(true)
Solves the problem at least more correctly