lab_tech 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/lab_tech/experiment.rb +9 -1
- data/lib/lab_tech/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +245 -0
- data/spec/dummy/log/test.log +11311 -0
- data/spec/examples.txt +81 -80
- data/spec/models/lab_tech/experiment_spec.rb +15 -0
- metadata +2 -2
data/spec/examples.txt
CHANGED
@@ -1,83 +1,84 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
---------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/models/lab_tech/default_cleaner_spec.rb[1:1] | passed | 0.
|
4
|
-
./spec/models/lab_tech/default_cleaner_spec.rb[1:2] | passed | 0.
|
5
|
-
./spec/models/lab_tech/default_cleaner_spec.rb[1:3] | passed | 0.
|
6
|
-
./spec/models/lab_tech/default_cleaner_spec.rb[1:4] | passed | 0.
|
7
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:1:1] | passed | 0.
|
8
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:1] | passed | 0.
|
9
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:2] | passed | 0.
|
10
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:3:1] | passed | 0.
|
11
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:3:2] | passed | 0.
|
12
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:4
|
13
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:
|
14
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:5:
|
15
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:6:1] | passed | 0.
|
16
|
-
./spec/models/lab_tech/experiment_spec.rb[1:1:2:
|
17
|
-
./spec/models/lab_tech/
|
18
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:
|
19
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:
|
20
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:
|
21
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:
|
22
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:
|
3
|
+
./spec/models/lab_tech/default_cleaner_spec.rb[1:1] | passed | 0.00067 seconds |
|
4
|
+
./spec/models/lab_tech/default_cleaner_spec.rb[1:2] | passed | 0.00306 seconds |
|
5
|
+
./spec/models/lab_tech/default_cleaner_spec.rb[1:3] | passed | 0.00068 seconds |
|
6
|
+
./spec/models/lab_tech/default_cleaner_spec.rb[1:4] | passed | 0.00357 seconds |
|
7
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:1:1] | passed | 0.00351 seconds |
|
8
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:1] | passed | 0.01125 seconds |
|
9
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:2] | passed | 0.00488 seconds |
|
10
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:3:1] | passed | 0.03129 seconds |
|
11
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:3:2] | passed | 0.01488 seconds |
|
12
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:4] | passed | 0.01308 seconds |
|
13
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:5:1] | passed | 0.01045 seconds |
|
14
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:5:2] | passed | 0.01448 seconds |
|
15
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:6:1] | passed | 0.01263 seconds |
|
16
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:7:1] | passed | 0.03464 seconds |
|
17
|
+
./spec/models/lab_tech/experiment_spec.rb[1:1:2:7:2] | passed | 0.02443 seconds |
|
18
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:1] | passed | 0.00061 seconds |
|
19
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:2] | passed | 0.00056 seconds |
|
20
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:3] | passed | 0.00046 seconds |
|
21
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:4] | passed | 0.00054 seconds |
|
22
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:5] | passed | 0.00046 seconds |
|
23
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:6] | passed | 0.00052 seconds |
|
23
24
|
./spec/models/lab_tech/percentile_spec.rb[1:1:1:7] | passed | 0.0004 seconds |
|
24
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:8] | passed | 0.
|
25
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:9] | passed | 0.
|
26
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:1:10] | passed | 0.
|
27
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:2:1] | passed | 0.
|
28
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:2:2] | passed | 0.
|
29
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:2:3] | passed | 0.
|
30
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:2:4] | passed | 0.
|
31
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:3:1] | passed | 0.
|
32
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:3:2] | passed | 0.
|
33
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:3:3] | passed | 0.
|
34
|
-
./spec/models/lab_tech/percentile_spec.rb[1:1:3:4] | passed | 0.
|
35
|
-
./spec/models/lab_tech/percentile_spec.rb[1:2:1] | passed | 0.
|
36
|
-
./spec/models/lab_tech/percentile_spec.rb[1:2:2] | passed | 0.
|
37
|
-
./spec/models/lab_tech/percentile_spec.rb[1:2:3] | passed | 0.
|
38
|
-
./spec/models/lab_tech/percentile_spec.rb[1:2:4] | passed | 0.
|
39
|
-
./spec/models/lab_tech/percentile_spec.rb[1:2:5] | passed | 0.
|
40
|
-
./spec/models/lab_tech/percentile_spec.rb[1:3:1] | passed | 0.
|
41
|
-
./spec/models/lab_tech/percentile_spec.rb[1:3:2] | passed | 0.
|
42
|
-
./spec/models/lab_tech/percentile_spec.rb[1:3:3] | passed | 0.
|
43
|
-
./spec/models/lab_tech/percentile_spec.rb[1:3:4] | passed | 0.
|
44
|
-
./spec/models/lab_tech/percentile_spec.rb[1:3:5] | passed | 0.
|
45
|
-
./spec/models/lab_tech/result_spec.rb[1:1:1] | passed | 0.
|
46
|
-
./spec/models/lab_tech/result_spec.rb[1:1:2:1:1] | passed | 0.
|
47
|
-
./spec/models/lab_tech/result_spec.rb[1:1:2:2:1] | passed | 0.
|
48
|
-
./spec/models/lab_tech/result_spec.rb[1:1:2:3:1] | passed | 0.
|
49
|
-
./spec/models/lab_tech/result_spec.rb[1:1:2:3:2] | passed | 0.
|
50
|
-
./spec/models/lab_tech/result_spec.rb[1:1:2:4:1] | passed | 0.
|
51
|
-
./spec/models/lab_tech/result_spec.rb[1:1:3:1] | passed | 0.
|
52
|
-
./spec/models/lab_tech/result_spec.rb[1:1:4:1] | passed | 0.
|
53
|
-
./spec/models/lab_tech/result_spec.rb[1:1:5:1] | passed | 0.
|
54
|
-
./spec/models/lab_tech/result_spec.rb[1:1:6] | passed | 0.
|
55
|
-
./spec/models/lab_tech/speedup_spec.rb[1:1] | passed | 0.
|
56
|
-
./spec/models/lab_tech/speedup_spec.rb[1:2] | passed | 0.
|
57
|
-
./spec/models/lab_tech/speedup_spec.rb[1:3] | passed | 0.
|
58
|
-
./spec/models/lab_tech/speedup_spec.rb[1:4] | passed | 0.
|
59
|
-
./spec/models/lab_tech/speedup_spec.rb[1:5] | passed | 0.
|
60
|
-
./spec/models/lab_tech/speedup_spec.rb[1:6] | passed | 0.
|
61
|
-
./spec/models/lab_tech/speedup_spec.rb[1:7] | passed | 0.
|
62
|
-
./spec/models/lab_tech/speedup_spec.rb[1:8] | passed | 0.
|
63
|
-
./spec/models/lab_tech/speedup_spec.rb[1:9] | passed | 0.
|
64
|
-
./spec/models/lab_tech/speedup_spec.rb[1:10] | passed | 0.
|
65
|
-
./spec/models/lab_tech/speedup_spec.rb[1:11] | passed | 0.
|
66
|
-
./spec/models/lab_tech/speedup_spec.rb[1:12] | passed | 0.
|
67
|
-
./spec/models/lab_tech/speedup_spec.rb[1:13] | passed | 0.
|
68
|
-
./spec/models/lab_tech/summary_spec.rb[1:1:1] | passed | 0.
|
69
|
-
./spec/models/lab_tech/summary_spec.rb[1:2:1] | passed | 0.
|
70
|
-
./spec/models/lab_tech/summary_spec.rb[1:3:1] | passed | 0.
|
71
|
-
./spec/models/lab_tech/summary_spec.rb[1:4:1] | passed | 0.
|
72
|
-
./spec/models/lab_tech/summary_spec.rb[1:5:1] | passed | 0.
|
73
|
-
./spec/models/lab_tech/summary_spec.rb[1:5:2] | passed | 0.
|
74
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:1:1] | passed | 0.
|
75
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:1:2] | passed | 0.
|
76
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:2:1] | passed | 0.
|
77
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:3:1] | passed | 0.
|
78
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:4:1] | passed | 0.
|
79
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:4:2] | passed | 0.
|
80
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:4:3] | passed | 0.
|
81
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:5:1] | passed | 0.
|
82
|
-
./spec/models/lab_tech/summary_spec.rb[1:6:6:1] | passed | 0.
|
83
|
-
./spec/models/lab_tech_spec.rb[1:1:1] | passed | 0.
|
25
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:8] | passed | 0.00044 seconds |
|
26
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:9] | passed | 0.00041 seconds |
|
27
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:1:10] | passed | 0.00044 seconds |
|
28
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:2:1] | passed | 0.00051 seconds |
|
29
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:2:2] | passed | 0.00042 seconds |
|
30
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:2:3] | passed | 0.0004 seconds |
|
31
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:2:4] | passed | 0.00038 seconds |
|
32
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:3:1] | passed | 0.00048 seconds |
|
33
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:3:2] | passed | 0.00039 seconds |
|
34
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:3:3] | passed | 0.00051 seconds |
|
35
|
+
./spec/models/lab_tech/percentile_spec.rb[1:1:3:4] | passed | 0.0004 seconds |
|
36
|
+
./spec/models/lab_tech/percentile_spec.rb[1:2:1] | passed | 0.00064 seconds |
|
37
|
+
./spec/models/lab_tech/percentile_spec.rb[1:2:2] | passed | 0.00056 seconds |
|
38
|
+
./spec/models/lab_tech/percentile_spec.rb[1:2:3] | passed | 0.0005 seconds |
|
39
|
+
./spec/models/lab_tech/percentile_spec.rb[1:2:4] | passed | 0.00042 seconds |
|
40
|
+
./spec/models/lab_tech/percentile_spec.rb[1:2:5] | passed | 0.00055 seconds |
|
41
|
+
./spec/models/lab_tech/percentile_spec.rb[1:3:1] | passed | 0.00051 seconds |
|
42
|
+
./spec/models/lab_tech/percentile_spec.rb[1:3:2] | passed | 0.00056 seconds |
|
43
|
+
./spec/models/lab_tech/percentile_spec.rb[1:3:3] | passed | 0.00066 seconds |
|
44
|
+
./spec/models/lab_tech/percentile_spec.rb[1:3:4] | passed | 0.00052 seconds |
|
45
|
+
./spec/models/lab_tech/percentile_spec.rb[1:3:5] | passed | 0.00053 seconds |
|
46
|
+
./spec/models/lab_tech/result_spec.rb[1:1:1] | passed | 0.01877 seconds |
|
47
|
+
./spec/models/lab_tech/result_spec.rb[1:1:2:1:1] | passed | 0.0286 seconds |
|
48
|
+
./spec/models/lab_tech/result_spec.rb[1:1:2:2:1] | passed | 0.01301 seconds |
|
49
|
+
./spec/models/lab_tech/result_spec.rb[1:1:2:3:1] | passed | 0.01277 seconds |
|
50
|
+
./spec/models/lab_tech/result_spec.rb[1:1:2:3:2] | passed | 0.01646 seconds |
|
51
|
+
./spec/models/lab_tech/result_spec.rb[1:1:2:4:1] | passed | 0.01273 seconds |
|
52
|
+
./spec/models/lab_tech/result_spec.rb[1:1:3:1] | passed | 0.00914 seconds |
|
53
|
+
./spec/models/lab_tech/result_spec.rb[1:1:4:1] | passed | 0.01341 seconds |
|
54
|
+
./spec/models/lab_tech/result_spec.rb[1:1:5:1] | passed | 0.01385 seconds |
|
55
|
+
./spec/models/lab_tech/result_spec.rb[1:1:6] | passed | 0.01192 seconds |
|
56
|
+
./spec/models/lab_tech/speedup_spec.rb[1:1] | passed | 0.00046 seconds |
|
57
|
+
./spec/models/lab_tech/speedup_spec.rb[1:2] | passed | 0.00045 seconds |
|
58
|
+
./spec/models/lab_tech/speedup_spec.rb[1:3] | passed | 0.00048 seconds |
|
59
|
+
./spec/models/lab_tech/speedup_spec.rb[1:4] | passed | 0.00046 seconds |
|
60
|
+
./spec/models/lab_tech/speedup_spec.rb[1:5] | passed | 0.00046 seconds |
|
61
|
+
./spec/models/lab_tech/speedup_spec.rb[1:6] | passed | 0.00047 seconds |
|
62
|
+
./spec/models/lab_tech/speedup_spec.rb[1:7] | passed | 0.0004 seconds |
|
63
|
+
./spec/models/lab_tech/speedup_spec.rb[1:8] | passed | 0.00043 seconds |
|
64
|
+
./spec/models/lab_tech/speedup_spec.rb[1:9] | passed | 0.00085 seconds |
|
65
|
+
./spec/models/lab_tech/speedup_spec.rb[1:10] | passed | 0.00056 seconds |
|
66
|
+
./spec/models/lab_tech/speedup_spec.rb[1:11] | passed | 0.00052 seconds |
|
67
|
+
./spec/models/lab_tech/speedup_spec.rb[1:12] | passed | 0.00058 seconds |
|
68
|
+
./spec/models/lab_tech/speedup_spec.rb[1:13] | passed | 0.00062 seconds |
|
69
|
+
./spec/models/lab_tech/summary_spec.rb[1:1:1] | passed | 0.00375 seconds |
|
70
|
+
./spec/models/lab_tech/summary_spec.rb[1:2:1] | passed | 0.09527 seconds |
|
71
|
+
./spec/models/lab_tech/summary_spec.rb[1:3:1] | passed | 0.01082 seconds |
|
72
|
+
./spec/models/lab_tech/summary_spec.rb[1:4:1] | passed | 0.01355 seconds |
|
73
|
+
./spec/models/lab_tech/summary_spec.rb[1:5:1] | passed | 0.01439 seconds |
|
74
|
+
./spec/models/lab_tech/summary_spec.rb[1:5:2] | passed | 0.01411 seconds |
|
75
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:1:1] | passed | 0.03184 seconds |
|
76
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:1:2] | passed | 0.02262 seconds |
|
77
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:2:1] | passed | 0.02551 seconds |
|
78
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:3:1] | passed | 0.0247 seconds |
|
79
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:4:1] | passed | 0.07863 seconds |
|
80
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:4:2] | passed | 0.06924 seconds |
|
81
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:4:3] | passed | 0.05339 seconds |
|
82
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:5:1] | passed | 0.0695 seconds |
|
83
|
+
./spec/models/lab_tech/summary_spec.rb[1:6:6:1] | passed | 0.21666 seconds |
|
84
|
+
./spec/models/lab_tech_spec.rb[1:1:1] | passed | 0.01148 seconds |
|
@@ -92,6 +92,21 @@ RSpec.describe LabTech::Experiment do
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
specify "clients can intercept the LabTech::Result before it gets recorded (EXPERIMENTAL)" do
|
96
|
+
LabTech.science "wibble" do |e|
|
97
|
+
e.context( { a: 1 } )
|
98
|
+
e.use { :hello_world }
|
99
|
+
e.try { :howdy_earth }
|
100
|
+
|
101
|
+
e.__after_recording__ do |result|
|
102
|
+
result.update context: { b: 2 }
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
result = experiment.results.first
|
107
|
+
expect( result.context ).to eq( { b: 2 } )
|
108
|
+
end
|
109
|
+
|
95
110
|
describe "diff-generating behavior" do
|
96
111
|
let(:result) { experiment.results.first }
|
97
112
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lab_tech
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Livingston-Gray
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|