-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the current Serenity framework allows Junit XML file to generate TestOutcome object instead of using the test execution json file #2455
Comments
Hi @wakaleo , I go through the code, I can see the TestOutComeLoader class which is basically to load the data is restricted to use of only .Json file.
above code is just filtering the .json file from your reportsDirectory. let me know if you are going to support to generate the TestOutComes from Junit .Xml report files? |
They are generated automatically, in target/site/serenity, with the prefix "SERENITY-JUNIT |
Hi @wakaleo , Sorry I think our question is different. We want to know about the when we call to but when we execute the test it also generates the Junit .xml file in target/site/serenity folder. Question: We have restricted the Testoutcome construnction with Json only. for more details , can refer "net\serenity-bdd\serenity-model\2.4.1\serenity-model-2.4.1.jar!\net\thucydides\core\reports\TestOutcomeLoader.class" . |
That isn't currently supported. Why do you need to do that? |
Actually, We using Jest-Jasmine for angular web app testing, so I am using Jest-Junit JS library to generate the .xml report, Due to wrong report generation in Jest for .JSON so We are going with JUnit .XML report, so in future we can integrate this to any test management tools similar like Current implementation with .JSON report exist. I hope you understand our requirement Why we are going with Junit .XML report. Just trying to follow serenity Java code, how you manage Junit .xml report in your case as it seems it's not implemented. |
It is currently produced as part of the normal output. You could potentially refactor it into a separate report so that it can be activated and deactivated as required - happy to review a PR if you want to take a look. |
Hi, I understand that the current version of Serenity is able to generate TestOutcome object from the test execution JSON file. May I know if it is also able to generate the same using Junit XML file? If so, can you share with me some links for reference. Thanks.
The text was updated successfully, but these errors were encountered: