Benjamin Curtis

Speculations on Web Development

Automated Test Case Reporting

| Comments

Over the weekend I added a feature to Tesly to allow the results of test cases to be reported via an API. Of course, the first testing environment to be supported is Rails (Test::Unit). :)

By installing the Tesly Reporter plugin, Rails developers can have the results of their automated tests be reported to Tesly so that other developers, managers, and clients on their projects can see at a glance what is being tested and what the latest results of those tests are. I also used the CSS progress bars from Tobi to make it extremely easy to see the health of the project according to the test results.

After creating a Tesly account (Personal plan or better) and installing and configuring the plugin, you can run your tests as usual (rake, rake test:units, etc.). After each test run, the results will be sent to Tesly and recorded in the database. Each test file becomes a test plan, and each test method becomes a test case. The project, test plans, and test cases will all be created on the fly if neccessary, or updated if not. You can then change the names of the test plans and test cases and the automated reporting will still work.

I’ve been looking forward to having this feature for a while now, and I’m excited to be able to use it. I hope you will take it for a spin.