lopata 0.1.12 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -25
- data/exe/lopata +11 -11
- data/lib/lopata.rb +123 -74
- data/lib/lopata/active_record.rb +135 -135
- data/lib/lopata/condition.rb +30 -30
- data/lib/lopata/configuration.rb +125 -125
- data/lib/lopata/environment.rb +35 -35
- data/lib/lopata/factory_bot.rb +72 -72
- data/lib/lopata/generators/app.rb +42 -42
- data/lib/lopata/generators/templates/Gemfile +7 -7
- data/lib/lopata/generators/templates/Lopatafile +20 -20
- data/lib/lopata/generators/templates/config/environments/qa.yml +7 -7
- data/lib/lopata/generators/templates/config/initializers/capybara.rb +1 -1
- data/lib/lopata/id.rb +22 -22
- data/lib/lopata/loader.rb +31 -27
- data/lib/lopata/observers.rb +4 -4
- data/lib/lopata/observers/backtrace_formatter.rb +103 -103
- data/lib/lopata/observers/base_observer.rb +33 -33
- data/lib/lopata/observers/console_output_observer.rb +100 -100
- data/lib/lopata/observers/web_logger.rb +130 -130
- data/lib/lopata/role.rb +109 -109
- data/lib/lopata/runner.rb +67 -67
- data/lib/lopata/scenario.rb +136 -136
- data/lib/lopata/scenario_builder.rb +497 -497
- data/lib/lopata/shared_step.rb +38 -38
- data/lib/lopata/step.rb +191 -191
- data/lib/lopata/version.rb +6 -6
- data/lib/lopata/world.rb +24 -24
- metadata +4 -4
data/lib/lopata/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
module Lopata
|
2
|
-
# @private
|
3
|
-
module Version
|
4
|
-
STRING = '0.1.
|
5
|
-
end
|
6
|
-
end
|
1
|
+
module Lopata
|
2
|
+
# @private
|
3
|
+
module Version
|
4
|
+
STRING = '0.1.16'
|
5
|
+
end
|
6
|
+
end
|
data/lib/lopata/world.rb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
# Container for gobal non-configuration data
|
2
|
-
class Lopata::World
|
3
|
-
# Scenarios are selected for current run
|
4
|
-
# @return [Array<Lopata::Scenario::Execution>]
|
5
|
-
attr_reader :scenarios
|
6
|
-
|
7
|
-
# @private
|
8
|
-
def initialize
|
9
|
-
@scenarios = []
|
10
|
-
end
|
11
|
-
|
12
|
-
# @private
|
13
|
-
def notify_observers(event, context)
|
14
|
-
observers.each do |observer|
|
15
|
-
observer.send event, context
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
private
|
20
|
-
|
21
|
-
# Define observers based on configuration
|
22
|
-
def observers
|
23
|
-
Lopata.configuration.observers
|
24
|
-
end
|
1
|
+
# Container for gobal non-configuration data
|
2
|
+
class Lopata::World
|
3
|
+
# Scenarios are selected for current run
|
4
|
+
# @return [Array<Lopata::Scenario::Execution>]
|
5
|
+
attr_reader :scenarios
|
6
|
+
|
7
|
+
# @private
|
8
|
+
def initialize
|
9
|
+
@scenarios = []
|
10
|
+
end
|
11
|
+
|
12
|
+
# @private
|
13
|
+
def notify_observers(event, context)
|
14
|
+
observers.each do |observer|
|
15
|
+
observer.send event, context
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
# Define observers based on configuration
|
22
|
+
def observers
|
23
|
+
Lopata.configuration.observers
|
24
|
+
end
|
25
25
|
end
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Volochnev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
rubygems_version: 3.
|
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.16
|
142
142
|
test_files: []
|