Basically, I want to avoid visiting a browser to get the detailed test results.
Asked
Active
Viewed 122 times
1 Answers
1
I had similar requirements, as I want to run "drush test-run" from within vim and get the results traversable in vim.
So I started a small and rough project https://github.com/DirkR/junitlog2vim. It takes the xml results file and generates line by line report. The script junitlog2vim.py requires python3.
As a convenience I created a Makefile. It takes the optional arguments "CASE" and "METHODS" to define the proper arguments for "drush test-run" and it has sensible defaults. You only have to provide an argument SITE_ALIAS or edit the Makefile.
if you run
make SITE_ALIAS=@mysite CASE=MyTestCase
then you get linewise error report with filename, line number and error message.
I hope it helps. Feel free to hack or adopt it.

DirkR
- 344
- 1
- 5
-
Wow! :O wish I could upvote more. I'll definitely look into using it or hacking it. Thanks! :) – Favio Jan 15 '14 at 19:13
-
If it doesn't work for you, then you can also provide feature requests. It actually works for me. ;) – DirkR Jan 18 '14 at 19:33