lopata 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lopata/observers/web_logger.rb +6 -0
- data/lib/lopata/runner.rb +8 -0
- data/lib/lopata/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0587bd058d882d2a656a1ab4f4e60ae05f756f2190e5f2b977ea9c97ca9a749
|
4
|
+
data.tar.gz: 97fc9b78d90d71c2ecfdd43d892380b25aed11b3ad03b5370683a601b5aa3a17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d20009dbd9d904fc2af94df682c2964b74d269871c7d331eacf26536c365b39d830a03308c1aa6eb7399022e21d63a98cb1ec60dbf6d8bac876be1484db725ae
|
7
|
+
data.tar.gz: adf29771c6c191fca1e1dcf7954d5a21a2ae0acf28fabeb94886a8d82e83e4120f74d4610febaace4049ac5be20d28927c0076b9cc1590b8b3fae473e0177fd7
|
@@ -46,6 +46,12 @@ module Lopata
|
|
46
46
|
@launch_id = JSON.parse(post("/projects/#{project_code}/builds/#{build_number}/launches.json", body: {total: count}).body)['id']
|
47
47
|
end
|
48
48
|
|
49
|
+
# Create test stubs for all the scenarios within then build
|
50
|
+
def init_scenarios(world)
|
51
|
+
post("/projects/#{project_code}/builds/#{build_number}/tests.json",
|
52
|
+
body: { scenarios: world.scenarios.map { { title: _1.title } } })
|
53
|
+
end
|
54
|
+
|
49
55
|
def add_attempt(scenario, finished)
|
50
56
|
status = scenario.failed? ? Lopata::FAILED : Lopata::PASSED
|
51
57
|
steps = build_hashes(scenario.steps)
|
data/lib/lopata/runner.rb
CHANGED
@@ -15,6 +15,7 @@ module Lopata
|
|
15
15
|
option :keep, type: :boolean, aliases: 'k'
|
16
16
|
option :text, aliases: 't'
|
17
17
|
option :list, type: :boolean, aliases: 'l'
|
18
|
+
option :init, type: :boolean, aliases: 'i'
|
18
19
|
def test(*args)
|
19
20
|
trap_interrupt
|
20
21
|
configure_from_options
|
@@ -22,6 +23,8 @@ module Lopata
|
|
22
23
|
Lopata::Loader.load_scenarios(*args)
|
23
24
|
if options[:list]
|
24
25
|
list_scenarios
|
26
|
+
elsif
|
27
|
+
init_scenarios
|
25
28
|
else
|
26
29
|
run_scenarios
|
27
30
|
end
|
@@ -64,6 +67,11 @@ module Lopata
|
|
64
67
|
Lopata.world.scenarios.each { |s| puts s.title }
|
65
68
|
end
|
66
69
|
|
70
|
+
def init_scenarios
|
71
|
+
client = Lopata::Client.new
|
72
|
+
client.init_scenarios(Lopata.world)
|
73
|
+
end
|
74
|
+
|
67
75
|
def run_scenarios
|
68
76
|
world = Lopata.world
|
69
77
|
world.notify_observers(:started, world)
|
data/lib/lopata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lopata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Volochnev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -138,5 +138,5 @@ requirements: []
|
|
138
138
|
rubygems_version: 3.2.15
|
139
139
|
signing_key:
|
140
140
|
specification_version: 4
|
141
|
-
summary: lopata-0.1.
|
141
|
+
summary: lopata-0.1.27
|
142
142
|
test_files: []
|