File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ object CirclePlugin extends AutoPlugin {
58
58
59
59
case class TestKey (source : String , classname : String )
60
60
61
- // Through this magical command we established that the average class run_time is 7.737
61
+ // Through this magical command we established that the average class run_time is 8.841
62
62
// jq <~/results.json '.tests | map(select(.result != "skipped")) | group_by(.classname) | map(map(.run_time) | add) | (add / length)'
63
- private [this ] val AVERAGE_TEST_CLASS_RUN_TIME = 7.737d
63
+ private [this ] val AVERAGE_TEST_CLASS_RUN_TIME = 8.841d
64
64
65
65
override def globalSettings : Seq [Def .Setting [_]] = List (
66
66
circleTestsByProject := {
@@ -109,9 +109,9 @@ object CirclePlugin extends AutoPlugin {
109
109
.map(_.asScala)
110
110
.getOrElse(Iterator ())
111
111
.toStream
112
- .filter(_.result != " skipped" ) // don't count timings of tests that didn't run
113
112
.groupBy(result => TestKey (result.source, result.classname))
114
- .mapValues(_.foldLeft(0.0d )(_ + _.run_time))
113
+ // don't count timings on skipped tests, but remember we've seen the classname
114
+ .mapValues(_.filter(_.result != " skipped" ).foldLeft(0.0d )(_ + _.run_time))
115
115
} catch {
116
116
case e : Exception =>
117
117
log.warn(f " Couldn't read test results file: $testResultsFile" )
You can’t perform that action at this time.
0 commit comments