I want to use ginkgo as the integration testing tool in project, but I have searched ginkgo doc and github issues below:
Feature request: HTML reporter #141
Specs aren't identified in go test . -json output #639
I find that ginkgo only support json reporter and junit reporter, no html reporter
But it's really need a html report for boss to see the test clearly, so I thought one solution it's to use the ginkgo junit report and use the tool below
https://github.com/inorton/junit2html
transfer it to html report.
It's a solution yet, but I want to know is there have any other solution to get a more beautiful html report. Thanks all.
Related
I'm using Cypress to run a suite of automated tests.
The current version of cypress provides mocha-junit-reporter out of the box, and provides configuration options to pass to the reporter. One of the options is the 'mochaFile'.
I'm using the recommended [hash] tag to output reports across multiple spec files.
this results in a flat mess of files that look like 'results/test-output-abc12345.xml'.
What I want instead is for the test file's relative path and filename to be pass in as the reporter's output file path.
This would give me a structured, feature first view of the output, and in Azure Dev Ops, which aggregates the test output, it would give me correct filenames to detect intermittently failing tests.
Things I've tried that haven't worked:
I've tried to use hooks to modify Cypress's config or set environment variables to try to override the reporterOptions/mochaFile per test at (hopefully) the right time.
I've tried to grab the outputted defaultly-named xml file, and copy it to the correct path+filename given the Cypress.spec.name context, but I can't seem to find the right hook or time to do this.
after and afterEach don't work - I don't think the test report has saved the file yet.
Using a plugin, hooking to some event on test:before:run or test:after:run seem promising, but I'm flying blind since I can't debug into it, so I've been unsucessful in modifying the reporter's output path or copying the file.
I'd love it if someone could show a working example using mocha-junit-reporter, or even a different mocha compatible reporter, if the reporter would play well with Azure Dev Ops, and can help me discover intermittently failing tests.
I am working in python + Appium to automate an Android App. I have created 7 scripts and imported all the scripts in a single script named Main_module_testing.py.
Now I want to generate an HTML Report for my test. In which it automatically creates Pass/Fail result. I have tried HTMLTestRunner.py, but its throwing so many error related to IOString, Unicode, decode etc.
Can anyone please tell how to fix it or generate an automatic HTML test report?
You can integrate Python selenium test with HTMLTestRunner to generate report in html follow below link:
HTMLTestRunner
Click Here
Let me know if you see any issue.
I have a strong test suit built using Cucumber - WATIR. Also I am using pretty face reports to generate test execution report which gives a crispy dashboard. Along with that I also do create HTML and json reports too.
I set up all the reports to be generated in a folder with the day, and browser name. so today it would be like 11-15/IE9/ and 11-15/FIREFOX/ etc. So I need a way to prepare a report where I should get a report which should be a merge of all the reports. Any suggestion how to achieve will be highly appreciated.
How can I do this with generated json or html reports?
Also a thought in my mind is , any how I am having pretty face report, where I am getting a dashboard with name index.html inside 11-15/IE9/ and 11-15/FIREFOX/, I want to create a dynamic HTML page where it reads all the datefiles/browser creates links to the index.html on it.
Awaiting any new idea or any enhancement to my existing idea.
I've put together a custom JUnit runner that saves a screenshot when a WebDriver test fails.
I'm using Maven's failsafe plugin to create reports of the integration tests and TeamCity is our CI server.
I know TeamCity supports custom reports, but I don't know how I'd embed the image files into an HTML page (or pages) with references to the relevant tests.
What would be a good method to integrate the screenshots into the test report?
Is there a Maven plugin that'll do the job?
Maybe Allure-report would suit for your purpose. It allows to create a nice report that contains different attachments, including screenshots. Moreover it has JUnit integration and Teamcity plugin, so it fully covers your use-case.
Unfortunately there is no way to simply change the reports cause they are generated by the maven-report-plugin which can't be simply changed.
What you can try is to create a separate folder and create a link via the site.xml descriptor.
You can try maven-cobertura-plugin. Including this in your build will generate a HTML report of all the test case success, failure and coverage. Hope this helps....
I'm using Jasmine-reporters with Jasmine to output a bunch of JUnitXML format files that I need Hudson to parse for me and report on success/failure. Does anybody know how I would ask Hudson to go test a bunch of XML as part of the build process? Thanks!
In the job's "Post-build Actions", there should be a check box to "Publish JUnit test result report". You can put an ant-glob expression (as if you were writing an "includes" element) to match your xml files. I'm basing this on what I see in my Jenkins server; Hudson should be equivalent for your question.