capydash 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/capydash/test_data_aggregator.rb +7 -0
- data/lib/capydash/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c4ac0c982d52d8e79b722368df5d106ff716fd450bbc82bcad5c00461610427
|
|
4
|
+
data.tar.gz: 5453b6ae15d944cc97e318744788b9e8712538b93599d847991ba436dc5a7667
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 85afa448055003ea66763bf6db6c01098dc12fc3e518ce4300d452b6f659a355bdd36c744e2c6ccb07b6bd20321ec7dfeb0dd08ef63bed4474ed5a3b623d5fae
|
|
7
|
+
data.tar.gz: 9de10d46959fda60e26133d9d457d73f78c5d5e181b92586226c207d223b7cb32bfcd1311ab565bdce372fbc6f91460802629fed37ba5667b17888e3960e70b2
|
|
@@ -7,6 +7,9 @@ module CapyDash
|
|
|
7
7
|
class TestDataAggregator
|
|
8
8
|
class << self
|
|
9
9
|
def start_test_run
|
|
10
|
+
# Don't start a new run if one is already in progress
|
|
11
|
+
return if test_run_started?
|
|
12
|
+
|
|
10
13
|
run_id = generate_run_id
|
|
11
14
|
run_data = {
|
|
12
15
|
id: run_id,
|
|
@@ -24,6 +27,10 @@ module CapyDash
|
|
|
24
27
|
set_current_test_context(run_id, nil, [])
|
|
25
28
|
end
|
|
26
29
|
|
|
30
|
+
def test_run_started?
|
|
31
|
+
get_current_run_id != nil
|
|
32
|
+
end
|
|
33
|
+
|
|
27
34
|
def finish_test_run
|
|
28
35
|
run_id = get_current_run_id
|
|
29
36
|
return unless run_id
|
data/lib/capydash/version.rb
CHANGED