I tend to do all my development work from the command line, and I was therefore very happy to discover the command-line test runner script a few weeks back; however, I was wondering if we could have a few more options for controlling how it outputs its results. Particularly, I'd like to be able to see the name of the test function as opposed to just the line number of the assertion.
Actually, given the amount of data that _could_ be output, I think it would also be quite helpful to offer alternate reporter functions/classes. I'd especially like to be able to generate an XML log of the test results (see PHPUnit's logging formats for some good examples); this would make it much easier to integrate Drupal Simpletests into a more formalized build process for particularly complex or sensitive projects.
It appears that the original SimpleTest library (not the Drupal fork) has some alternate reporters available, including an XML reporter; would it be possible to port these over to the Drupal version and then add a command-line flag for selecting which one to use?
Comments
Comment #1
RockyRoad commented+1 :)
#475464: SimpleTest: abstract reporter and generate XML reports
I didn't find yet the time to dive into simpletest code, would you feel like helping on that ?
Comment #2
jazzslider commentedSorry, didn't see your issue; marking mine as a duplicate and will respond on yours: #475464: SimpleTest: abstract reporter and generate XML reports
Comment #3
jazzslider commentedWhoops…actually marking it as a duplicate this time: #475464: SimpleTest: abstract reporter and generate XML reports