You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the scenario name contains characters that are invalid for a file name (e.g. / on windows/linux, or : on windows), the report generation fails to produce the report of this scenario.
To reproduce:
Clean-up the target folder
Edit a scenario file an set a / in the name (e.g. integration_test_files/helloworld/get_api_integration_test.json)
Run the test for this scenario: mvn test -ntp -pl core -Dtest=**/HelloWorldInMemoryTest
2024-10-20 10:45:40,538 [main] INFO org.jsmart.zerocode.core.engine.listener.TestUtilityListener - Generating test-statistics reports. please wait...
2024-10-20 10:45:40,539 [main] ERROR org.jsmart.zerocode.core.report.ZeroCodeReportGeneratorImpl -
************
Now files were found in folder:target/zerocode-test-reports/, hence could not proceed.
(If this was intentional, then you can safely ignore this error)
**************
Implemented Solution
The special chars replaced via "_". More details are in the PR below.
Please go to the "Motivation & Context" section in this PR.
The text was updated successfully, but these errors were encountered:
The cause is that, reporting produces a json file for each scenario in target/zerocode-test-reports. The scenario name is used to give the name to this file, failing it it contains illegal characters. Sanitize this file name to fix it.
I can prepare a PR to fix it. @authorjapps can you please assign this to me?
About The Problem
If the scenario name contains characters that are invalid for a file name (e.g.
/
on windows/linux, or:
on windows), the report generation fails to produce the report of this scenario.To reproduce:
/
in the name (e.g.integration_test_files/helloworld/get_api_integration_test.json
)mvn test -ntp -pl core -Dtest=**/HelloWorldInMemoryTest
Expected: Report generation succeeds, see e.g. this action run: https://github.com/javiertuya/zerocode/actions/runs/11425689187
Actual: Report generation fails, see e.g. this action run: https://github.com/javiertuya/zerocode/actions/runs/11425675217. Report generation displays this message:
Implemented Solution
The special chars replaced via "_". More details are in the PR below.
Please go to the "Motivation & Context" section in this PR.
The text was updated successfully, but these errors were encountered: