2013/2/15 Raphael Castaneda <
raphael....@gmail.com>
>
> I'm not sure how many of you are using testdoc, but I hope you find this
> useful.
>
> My team has been using the output of testdoc to share and review our test
> plan.
> Since we've also been using tags like "implemented", our manager has been
> using testdoc to keep track of our progress.
>
> I developed this script to make testdoc's output a little eaiser to read,
> as well as add some functionality to the test tags on the page.
I tested the script and the result was really nice. I liked both the
enhanced styles and the possibility to filter tests based on tags. It
would be great to get at least some of these enhancements into
Testdoc, and possibly also to the normal log files, either as standard
features or some kind of optional plugins. Below are few
comments/ideas related to this. Let me know what you think.
1) You could already now create a separate project that contains these
enhancements as a plugin. Modifying the generated documentation is a
bit hacky but works.
2) We could implement a feature to log/report/Testdoc/Libdoc that
allows injecting custom content to the generated files. This would
make it possible to add your styles and javascript into Testdoc
results without modifying the generated file with a separate script.
The functionality could obviously also be used for other purposes,
such as adding custom styles, company logos, whatever, to normal
reports and log files. To make this really flexible, we probably
should allow injecting content both to the document head and to the
body. The usage could be something like this:
python -m robot.testdoc --inject head:styles.css --inject
head:javascript.js --inject body:content.html path/to/testdata
3) We could simply add these enhancements into the standard Testdoc.
If you are interested on that, it would be great if you could submit
separate issues about different enhancements to the issue tracker.
That way it would be easier to review both merits of individual
enhancements and also the code related to them.
I also have some bad news for you: I have recently tuned logs,
reports, and also Testdoc results quite a bit, and the current code
isn't anymore compatible with your enhancements. There has been both
some changes to the structure of these files (for example, the +/-
button is nowadays just a background image) and also to element
identifiers have changed (switched to use names-with-hyphens-style
consistently). It is unfortunate that these changes break your code in
a minor release (they are included into the forthcoming 2.7.7), but I
didn't know anyone has code dependent on these APIs. I promise to be
more careful with such changes in the future.
Cheers,
.peke
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org