perf_check 0.2.6 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perf_check/callbacks.rb +2 -2
- data/lib/perf_check.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d80f52906352baede601135b143828f3b1983985
|
4
|
+
data.tar.gz: 3b1300b56aebd3733cd2d9bb15addcfea6f6b9ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e17dca3e1e25fae73c741a3263b5247859ea9276d356d2f73f9511e82c3dd301bd8247f56eff59e4c4d6fbf1132115712073b4da66902985b87438df29f856
|
7
|
+
data.tar.gz: 4c04b113dab60e0a3b634b7c5cf7020e34369bc93bd47f4648eb3546e97b48b45deb8b43c7f32adbc2415ed59d3973d92ad94b6788bcbc032a0007c0d804af9b
|
data/lib/perf_check/callbacks.rb
CHANGED
@@ -25,8 +25,8 @@ class PerfCheck
|
|
25
25
|
end
|
26
26
|
|
27
27
|
|
28
|
-
def trigger_before_start_callbacks
|
29
|
-
PerfCheck.before_start_callbacks.each{ |f| f.call(self) }
|
28
|
+
def trigger_before_start_callbacks(test_case)
|
29
|
+
PerfCheck.before_start_callbacks.each{ |f| f.call(self, test_case) }
|
30
30
|
end
|
31
31
|
|
32
32
|
def trigger_when_finished_callbacks(data={})
|
data/lib/perf_check.rb
CHANGED
@@ -35,8 +35,6 @@ class PerfCheck
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def run
|
38
|
-
trigger_before_start_callbacks
|
39
|
-
|
40
38
|
profile_requests
|
41
39
|
|
42
40
|
if options.reference
|
@@ -53,6 +51,7 @@ class PerfCheck
|
|
53
51
|
def profile_requests
|
54
52
|
server.restart
|
55
53
|
test_cases.each_with_index do |test, i|
|
54
|
+
trigger_before_start_callbacks(test)
|
56
55
|
server.restart unless i.zero? || options.diff
|
57
56
|
|
58
57
|
test.cookie = options.cookie
|