rspec-flaky 0.0.1 → 0.0.2
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/README.md +5 -1
- data/lib/rspec/flaky/cli.rb +1 -1
- data/lib/rspec/flaky/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68908861a9d1deb8870d2b981c08d3b4d2e35a71c51f73a389ae2be398cbe03d
|
|
4
|
+
data.tar.gz: be50f21c01defd91ae738ec9d1d19f3ecfe0ee4b606eddfabc241fea0d1843e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 158aea7d249eae4e938e0d12a2ac898a059a13c8ae32ce41b7fd408c3c781b953306ade0dabacd62c6879c4a1f9176f1d034a080a2c41bb672afdcb1eb98ee50
|
|
7
|
+
data.tar.gz: f3d2d3b53a66bc4c076b8088a55dca8cd83dc754fbe8fef678f507630fa335ce848e0dba36dfaeb2190483eb095a92e15987c932b07039e022d52a623bcc9791
|
data/README.md
CHANGED
|
@@ -26,7 +26,11 @@ Select the model whose attributes will be dumped:
|
|
|
26
26
|
|
|
27
27
|
Run the command to iteratively run flaky example:
|
|
28
28
|
|
|
29
|
-
rspec-flaky path/to/flaky_spec.rb:12 -i 10
|
|
29
|
+
rspec-flaky path/to/flaky_spec.rb:12 -i 10 -j -d
|
|
30
|
+
|
|
31
|
+
-i - iterations number
|
|
32
|
+
-j - save pointed model attributes to tmp/flaky_tests/.:flaky_spec:12 as json
|
|
33
|
+
-d - save database dump after each example to tmp/flaky_tests/database_dumps/.:flaky_spec:12 as sql file
|
|
30
34
|
|
|
31
35
|
If at least one example is failed you can compare pointed model's attributes dumped to tmp/flaky_test folder.
|
|
32
36
|
|
data/lib/rspec/flaky/cli.rb
CHANGED
|
@@ -22,7 +22,7 @@ module Flaky
|
|
|
22
22
|
|
|
23
23
|
def get_location(argv)
|
|
24
24
|
first_arg = argv.shift
|
|
25
|
-
raise 'You need to specify location first' unless Pathname.new(first_arg).exist?
|
|
25
|
+
raise 'You need to specify location first' unless Pathname.new(first_arg.split(":").first).exist?
|
|
26
26
|
return first_arg
|
|
27
27
|
end
|
|
28
28
|
|
data/lib/rspec/flaky/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-flaky
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- maratz
|
|
@@ -45,7 +45,7 @@ files:
|
|
|
45
45
|
- lib/rspec/flaky/pathes.rb
|
|
46
46
|
- lib/rspec/flaky/tables.rb
|
|
47
47
|
- lib/rspec/flaky/version.rb
|
|
48
|
-
homepage:
|
|
48
|
+
homepage: https://github.com/mzsrn/rspec-flaky
|
|
49
49
|
licenses:
|
|
50
50
|
- MIT
|
|
51
51
|
metadata: {}
|