Hi Vincent, Small bugfix in the fpcunit.xsl file. On line 58, the $ sign was missing infront of the "failureCount' variable. This caused the Summary line (when failures occured and no errors) to show up green instead of magenta.
Line 58 should look as follows: <xsl:when test="$failureCount > 0"> Regards, - Graeme - On 01/10/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
Hi Vincent, Attached is my latest efforts on fpcUnit Test Reports using XSLT. Before, I sent you two versions of the .xsl file. One created a report based on CSS only and the other one based on HTML Tables only. I tested both against my results (around 900 tests) and the CSS version was dog slow!! I then created from scratch a .xsl file generating HTML Tables (small ones) and uses a small CSS file to format (colors, fonts, etc) the generated HTML. The speed is *much* better. Attached is a archive containing the CSS, XSL and sample results files. I also included a small script file (fixup_xml.sh) which inserts a single line into the xml results file, to specify the xslt stylesheet to use. The reason for the script file, is because I didn't what to modify fpcUnit to insert that line automaticaly, as I like to generate different formatted results from the original xml file and need to insert different XSLT stylesheets for that. For example, I generate two different outputs from the same results.xml file. One for HTML results going to my web server and the other, a plain text email, which gets emailed to a newsgroup showing only the summary of the results. This version is much better than the ones I sent you before. A few things are still missing though, but that is due to the data being missing in the xml results. * The test listings need to be grouped by test suites which will allow for a better summaries to be generated. * More attributes need to be added to the test listings to give information like: Did the test pass, fail or give a error. This will allow me to link the summary test listing to the detailed results using the HTML version of the XSLT. * Ignored/Skipped tests still need support - My version of fpcUnit has not been patched yet. Enjoy, and please give me some feedback. Good or bad! Regards, - Graeme - On 19/09/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: > Graeme Geldenhuys schreef: > > On 9/8/06, Dean Zobec <[EMAIL PROTECTED]> wrote: > >> At first sight, it seems that the methods StartTest and EndTest of the > >> listeners are the right place where to place the code to do the timings. > >> I guess the right approach would be to add an option at command line or > >> otherwise to add the timing result. Same for the list of the run tests. > > > > > > Thanks for the pointers Dean. I didn't get time today, but should > > over the weekend. > > Any progres? > > Vincent > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > -- There's no place like 127.0.0.1
-- There's no place like 127.0.0.1 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal