SF.net SVN: jikesrvm:[15748] cattrack/trunk/app/models/report/ base_test_run_by_revision.rb

View: New views
1 Messages — Rating Filter:   Alert me  

SF.net SVN: jikesrvm:[15748] cattrack/trunk/app/models/report/ base_test_run_by_revision.rb

by dgrove-oss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Revision: 15748
          http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15748&view=rev
Author:   dgrove-oss
Date:     2009-07-27 20:26:00 +0000 (Mon, 27 Jul 2009)

Log Message:
-----------
RVM-835 : Elide test runs with no test executions from test run history

When building various reports that include
historical information over a window of recent test runs,
ignore any test run where the number of test case executions
was zero.  This makes the historical reporting of new/intermittent
failues more useful as it filters out non-useful failures that
happen due to complete build failures or other similar
infrastructure problems.

Modified Paths:
--------------
    cattrack/trunk/app/models/report/base_test_run_by_revision.rb

Modified: cattrack/trunk/app/models/report/base_test_run_by_revision.rb
===================================================================
--- cattrack/trunk/app/models/report/base_test_run_by_revision.rb 2009-07-27 12:44:31 UTC (rev 15747)
+++ cattrack/trunk/app/models/report/base_test_run_by_revision.rb 2009-07-27 20:26:00 UTC (rev 15748)
@@ -31,7 +31,7 @@
     options[:conditions] = [ sql, @test_run.host.id, @test_run.start_time, @test_run.variant]
     options[:limit] = @window_size
     options[:order] = 'start_time DESC'
-    @test_runs = Tdm::TestRun.find(:all, options).reverse
+    @test_runs = Tdm::TestRun.find(:all, options).reverse.select {|tr| tr.test_case_executions.size > 0}
   end
 
   def rows_to_columns


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

------------------------------------------------------------------------------
_______________________________________________
Jikesrvm-commits mailing list
Jikesrvm-commits@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits