minitest-perf 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/minitest/perf/statistics.rb +2 -2
- data/lib/minitest/perf/version.rb +1 -1
- metadata +1 -1
@@ -3,7 +3,7 @@ module MiniTest
|
|
3
3
|
module Statistics
|
4
4
|
class << self
|
5
5
|
def slowest_tests
|
6
|
-
|
6
|
+
MiniTest::Perf.persistence.sql(<<-SQL)
|
7
7
|
SELECT suite, name, avg(total) as avg_total
|
8
8
|
FROM tests
|
9
9
|
GROUP BY suite, name
|
@@ -13,7 +13,7 @@ module MiniTest
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def slowest_suites
|
16
|
-
|
16
|
+
MiniTest::Perf.persistence.sql(<<-SQL)
|
17
17
|
SELECT suite, AVG(test_count), AVG(avg_total_per_test_run) as avg_total
|
18
18
|
FROM (
|
19
19
|
SELECT run, suite, COUNT(name) AS test_count, AVG(total) as avg_total_per_test_run
|