History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CCRB-172
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Esteban Manchado Velázquez
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
CruiseControl.rb

[PATCH] Plugin-based test result collector

Created: 19/Feb/08 10:01 AM   Updated: 25/Apr/08 03:39 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. File ccrb-svn-20080219-test_result_collectors.svn-patch (101 kb)
2. GZip Archive ccrb-svn-20080219-test_result_collectors.svn-patch.gz (13 kb)
3. GZip Archive ccrb-svn-20080303-test_result_collectors.svn-patch.gz (13 kb)



 Description  « Hide
This patch replaces the old failures_and_errors_if_any result reporting mechanism with an extensible (via plugins) system that works for any kind of project. I'm using CC.rb for non-Rails, non-Ruby projects, but I wanted the same test result "report", so I developed this patch. It also adds some neat summary at the top, saying if there were any regressions or fixes (and which ones) in each build/testrun.

I have of course added tests for it, and everything passes just fine. By default it should behave like the current one (the default plugin is the Ruby one).

To try it out, you have to write something like this in your cruise_config.rb:

project.test_result_collector = TestCollectors::PerlTest

I'll write proper documentation if you accept the patch.

 All   Comments   Work Log   Change History      Sort Order:
Esteban Manchado Velázquez [19/Feb/08 10:03 AM]
Patch updated to SVN, 2008-02-19.

Esteban Manchado Velázquez [19/Feb/08 10:26 AM]
Updated patch (fixes a crash when there's just one build available for a given project), and now compressed.

Esteban Manchado Velázquez [04/Mar/08 10:06 AM]
Patch update. Fixed some issue with truncated test names in the result summary for Perl Test::More-style tests.

Esteban Manchado Velázquez [25/Apr/08 03:39 AM]
BTW, my latest version of the patch applies cleanly on 1.3.0.

Would you consider it for inclusion now, after 1.3.0 release? Is there anything I can do to increase the chances of it getting accepted, or at least reviewed?