I am working on selenium webdriverjs. Now I want to know about reporting tools, as up to now I am not using any reporting tools. Now I have decided to use a reporting tool. Please suggest me best reporting tool and why.
Mocha is also mentioned on the WebDriverJs wiki page. You can find more information about how the reporting works on the official websites.
- QUnit: Bottom left of the website
- Mocha: Chapter Report
Mocha provide different types of reports. Three of them generate HTML reports:
- HTMLCov: Shows the test coverage in a HTML page.
- Doc: Shows the tests in a HTML page. (Without results. Just documentation of present tests)
- HTML: Shows tests and results in a HTML page.
On stackoverflow someone descriped how to use the HTML reporter.
I am only using Selenium WebDriver with Java so I cannot answer your question about JS.
But with Java, you can generate your own HTML reports using one of the JUNIT classes, TestWatcher.
TestWatcher allows you to override the failed() and succeeded() JUNIT methods that are called automatically when a test passes or fails.
You can also override the starting() and finished() JUNIT methods that are called automatically when a test is about to start and when it finishes.
If you are interested in some code examples, please see this article: How To Generate SELENIUM HTML reports