views:

19

answers:

1

I have JsTestDriver set up to run tests automatically on remote server, which then produces XML format to my "test-reports" folder. I'm looking for some way to visualize the results automatically in Aptana/Eclipse, so that the other coders wouldn't be forced to check the console output to see if the tests failed or not.

Ideally, I would like to have a green/red light somewhere in the IDE, telling the state of the tests. Since I'm using remote server to run all the tests, the JsTestDriver plugin doesn't really cut it. :/ Is there some way to use ie. jUnit view for this?

The test-reports are produced to development machine itself, so all I would need is some sort of jUnit compatible (the results are in jUnit format) plugin to react to those files.

A: 

You can open the report XML file in the JUnit view by double-clicking it in Eclipse. The missing part would be to get it from the server into Eclipse. Or you could use something like the junitreport Ant task to transform the XML to a HTML report on the server, and have developers open that in a browser, in Eclipse or externally. You could also consider setting up a Hudson instance on your server, point that to your test results and integrate it into Eclipse using the new Mylyn Builds Hudson integration.

Fabian Steeg
But the problem with that is the automation, or lack of it. If the developer needs to separately check whether the tests passed or not, that pretty much nullifies the idea behind automated testing during coding. :/The basic premise would be that the tests are run after every file save, thus it becomes easier to catch the errors right then and there, and not when you have done x amount of changes to files and have no idea which change actually broke the build.
crappish
Oh, and I forgot to mention that the test-results themselves actually are produced to each specific development machine. So, I would need some sort of junit compatible (the test-reports themselves are in junit format) plugin to react to those files.
crappish
@crappish Added another thought for a closer integration in my answer.
Fabian Steeg
The problem with that would be that the results themselves are locally stored, in whichever computer ran the tests. Are there really no simple test results visualization plugins for Eclipse? :/
crappish