Closed jeffb-sfdc closed 2 years ago
Hey @jeffb-sfdc , thanks for raising the issue.
What you see in the terminal is a highly summarised output. Basically it lists the spec files that were running and passing/failing. If you set a reporter, e.g. spec
reporter, in your wdio.conf.ts
you will see the expected output. Not sure why that one test is not passing. It definitely should. Maybe enabling the reporter gives more insights?
Hi @christian-bromann , re. summarized output, I tried this with both logLevel set to trace
, as well as with it set to warn
, but in both cases when I ran npm run test
the output stated that both test suites passed (and since there is a failing test in another.e2e.ts, I expected some form of failure to have been reported).
re. setting the reporter to spec: the wdio.conf.ts that was pulled down when I cloned the repo, has this in it:
.
.
.
reporters: ['spec'],
.
.
.
...and appears to already have the reporter set to spec. Or is there something else that needs to be configured?
@christian-bromann I found the issue. In wdio.conf.ts, line 195 there is:
grep: grep.join('|'),
When this is removed, and mochaOpts is changed to:
mochaOpts: {
ui: 'bdd',
timeout: 60000,
invert: true
},
...all of the tests run. One side effect I'm seeing, is that two of the tests in basic.e2e.ts ("should be able to find the explorer tree view" and "should be able to iterate over the (default) tree items") are failing.
@christian-bromann I created the PR, https://github.com/webdriverio-community/wdio-vscode-service/pull/43 to address this issue as well as a few others.
When I run the test script (test/specs/basic.e2e.ts), I'm told the test runs, but it doesn't appear that the tests are actually running.
Steps to repro:
npm install
npm run build
npm run test
(or runnpm run ci
)Result: I got the following:
Expected: I was expecting each of the tests in basic.e2e.ts to be listed. I think basic.e2e.ts has something like 48 tests in it, so I was expecting all 48 of them to be listed, and listed as passing.
I then created a new test file, /test/specs/another.e2e.ts, and added the following
npm run build
npm run test
Result: I got the following:
Expected: Since another.e2e.ts has a test that should pass, and a test that should fail, I was expecting the results to tell me that one test passed and another failed.
I'm new to wdio-vscode-service and evaluating it, so if I'm missing a step or making a wrong assumption, please let me know.