ctrf-io / wdio-ctrf-json-reporter

A Webdriverio JSON test results reporter that follows the CTRF schema
https://ctrf.io
MIT License
2 stars 1 forks source link

Test execution details are not updated in the json file #17

Open sathya0206 opened 1 month ago

sathya0206 commented 1 month ago

I have installed the wdio-ctrf-json-reporter package and tried to create a JSON file to view the report in the Github actions. But unfortunately after successful creation of JSON file, the test execution result are not captured in my local. Also the Allure report has been created successfully for the same execution. I have been using Multi-remote and parallel execution option provided by webdriverio.

JSON file created after execution: { "results": { "tool": { "name": "webdriverio" }, "summary": { "tests": 0, "passed": 0, "failed": 0, "skipped": 0, "pending": 0, "other": 0, "start": 1723454410907, "stop": 1723454415810 }, "tests": [], "environment": { "appName": "Test" } } }

Ma11hewThomas commented 1 month ago

I can't recreate this issue.

Do your tests run? In instances where the tests fail to run, for example, due to a browser initialization issue, the report would contain no tests, like the one you posted.

Would you mind installing thedefault json reporter and let me know if you get the same outcome.

Thanks

sathya0206 commented 1 week ago

There was no issue in the execution and test were executed successfully. Also as you suggested tried json reporter, it is working as expected.