HTML Report enhancement - Issue 44

71 views
Skip to first unread message

Jan Smejkal

unread,
Apr 22, 2012, 5:07:41 AM4/22/12
to galli...@googlegroups.com
Dear all,

I enhanced Gallio HTML report. I added search, sort and filter functionality to Detail part of report. Search is based on substring matching. Results can be sorted by a lot of attributes (Names, Durations, Number of Test Failed, Number of Asserts and so on). By filters, you can set which type of test results (passed, failed, ignored) you want to see and which you want to hide. New functionality works all together, so the report can for example display only tests containing world "car", which passed sorted alphabetically.

All the changes are based on javascript. The HTML report nearly doesn't changed at all, just the javascript and css file. New functionality appears on report only if the browser supports javascript and were tested in most used browsers (Google Chrome, Firefox, Internet Explorer, Opera). The new part of javascript script itselves parses the DOM of test reports and built tree-like structure from it. All the search, sort and filter actions are then counted on this structure. Results are displayed in the report.

I would like to send you a patch file to test it and, if you like it, to include it to official repository. But i have problem with images, which I added into HTML report. I placed them into Resources/img folder in Gallio.Reports sollution and changed the plugin file, but when i build Gallio from source, images are not included in img folder of generated reports. Could any one be so kind to help me to put report together with images and to test new functionality? Is any chance the changes will be accepted? I include patch (diff file) of
v3/src/Gallio/Gallio.Reports folder, new problematic images and screenshot, how the new part of report has to look like.

I'm looking forward for all opinions about the report you will have.

Kind regards 

Jan Smejkal
screenshot-HTMLReport.png
patch_report.diff
ArrowDown.png
ArrowUp.png
FailedShow.gif
IgnoredShow.gif
PassedShow.gif

Graham Hay

unread,
Apr 22, 2012, 6:37:20 AM4/22/12
to galli...@googlegroups.com
Cool! That sounds really useful.

I can't remember exactly how it works, but I'll try and get your patch (with the images) working locally. Have you tried it on a large report?

I feel confident your changes will be accepted :)



Jan Smejkal

--
You received this message because you are subscribed to the Google Groups "gallio-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gallio-dev/-/jhDVX3ArIsgJ.
To post to this group, send email to galli...@googlegroups.com.
To unsubscribe from this group, send email to gallio-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gallio-dev?hl=en.

Jan Smejkal

unread,
Apr 22, 2012, 8:53:23 AM4/22/12
to galli...@googlegroups.com
Thank you for quick reply and great news. Just let me know, after you test it, what do you thing about the enhancement and how do you get it to work. I tried it only on a small report (about 2 test classes and 20 tests), but I will try larger today or tomorrow. I hope there will be no performance problems. Most complex operation, the sort, uses javascript built in function, which has complexity 0 (n*log n) I hope. Other operations just traverse the tree.

I deleted redundant post, sorry for that.

Kind Regards

Jan Smejkal
To unsubscribe from this group, send email to gallio-dev+unsubscribe@googlegroups.com.

Jan Smejkal

unread,
May 2, 2012, 3:44:57 PM5/2/12
to galli...@googlegroups.com
Hi all,

there is some encoding problem with posted diff file. I include new correct one. I will post some test result soon.

Kind Regards

Jan Smejkal
Gallio.Reports.diff

Graham Hay

unread,
May 7, 2012, 12:12:58 PM5/7/12
to galli...@googlegroups.com
Hi Jan,

Looks pretty good.

Just a couple of comments: it doesn't seem to work with the condensed html report (is that deliberate?), or when it is split across multiple pages (try Gallio.Tests). Also, the "order by" feels like it goes the wrong way, I'd expect the highest number to be at the top (could just be me).

Being able to filter seems like a really useful feature, and the performance was fine with the reports I tried.

Thanks,

Graham

To view this discussion on the web visit https://groups.google.com/d/msg/gallio-dev/-/lh4uLyCteD8J.

To post to this group, send email to galli...@googlegroups.com.
To unsubscribe from this group, send email to gallio-dev+...@googlegroups.com.

Jan Smejkal

unread,
May 16, 2012, 6:51:01 PM5/16/12
to galli...@googlegroups.com
Hi Graham,

thank you for testing. You totally right with the arrows, I'll inverse them. I'm sorry, I'm quite new to Gallio and I haven't noticed this types of tests before. Unfortunatelly, it seems that all the reports HTML code differs a bit. Even if you change from HTML to xHTML version, it's different. I will rework javascript code to work with all the types of reports and then let you know.

Kind Regards

Jan Smejkal

Anand Biradhar

unread,
Jun 19, 2012, 3:40:20 AM6/19/12
to galli...@googlegroups.com
Hi  Jan Smejkal,

This new modification to Gallio report is really a cool concept :)
I too have plans to customize the report in regards to project requirement. If it is possible to share the code for which you have made modification in report or let me know on how to open the diff file?

Thanks!

Regards,
Anand

Graham Hay

unread,
Jun 20, 2012, 1:47:08 PM6/20/12
to galli...@googlegroups.com
This version of the diff should work (did for me).

--
You received this message because you are subscribed to the Google Groups "gallio-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gallio-dev/-/7JKdniHzRdIJ.

To post to this group, send email to galli...@googlegroups.com.
To unsubscribe from this group, send email to gallio-dev+...@googlegroups.com.

Anand Biradhar

unread,
Jun 21, 2012, 4:30:14 AM6/21/12
to galli...@googlegroups.com
Hi thank you for the reply, can you please share the code with me? I am not able to open the diff file.....
If possible could you please also let me know from where we can download the Gallio source code?

Thanks in advance,
Anand C
To unsubscribe from this group, send email to gallio-dev+unsubscribe@googlegroups.com.

Graham Hay

unread,
Jun 21, 2012, 9:58:56 AM6/21/12
to galli...@googlegroups.com
The sauce is here. You should be able to apply the (second) diff using tortoisesvn, or any other client. Don't use the first version of the diff, as it is corrupted.

Let me know if you have trouble, and I can send you a merged version of the file.

To view this discussion on the web visit https://groups.google.com/d/msg/gallio-dev/-/F3AcFwXKFnIJ.

To post to this group, send email to galli...@googlegroups.com.
To unsubscribe from this group, send email to gallio-dev+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages