res 1.1.0.pre → 1.1.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/res/mappings.rb +4 -1
- data/lib/res/reporters/test_rail.rb +4 -4
- data/lib/res/reporters/testmine.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c42e81948be748fac40ccc5af1b4ef6fbdc73981
|
4
|
+
data.tar.gz: 86443f1069f5e84aea04bad85061136f61863430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00ebad5cf8582e2e16c1350f8428618d494e7b9a4a2a908e2d1d660564a285c15ad8184267de4c46568002b2423acdb572b65dc4ef6649e880bc8976f129a5ad
|
7
|
+
data.tar.gz: 365367e6f592b8e26fa838d5ebaaeb105e65ee73ef15e514e511c8dbb9ed7a9626e10c9e303c85b477139366882799100608de73dcfebdfe3c1e52a90854ade3
|
data/README.md
CHANGED
@@ -31,6 +31,10 @@ You can dump a Res IR results file using a cucumber formatter or parse xunit out
|
|
31
31
|
cucumber -f pretty -f Res::Formatters::RubyCucumber -o './cucumber.res'
|
32
32
|
Note: This cucumber formatter works for cucumber version < 2.0
|
33
33
|
|
34
|
+
## Rspec
|
35
|
+
|
36
|
+
rspec -f Res::Formatters::Rspec -o ./rspec.res
|
37
|
+
|
34
38
|
## Junit
|
35
39
|
|
36
40
|
./bin/res.rb --junit '/path/to/xunit_result.xml'
|
data/lib/res/mappings.rb
CHANGED
@@ -30,8 +30,8 @@ module Res
|
|
30
30
|
end # initialize
|
31
31
|
|
32
32
|
# Creates a new suite within testrail
|
33
|
-
def sync_tests(
|
34
|
-
@ir =
|
33
|
+
def sync_tests(ir)
|
34
|
+
@ir = ir
|
35
35
|
@mappings = Res::Mappings.new(@ir.type)
|
36
36
|
|
37
37
|
suite = @project.find_or_create_suite(:name => @suite_name, :id => @project.id)
|
@@ -49,8 +49,8 @@ module Res
|
|
49
49
|
|
50
50
|
# Submits run against suite
|
51
51
|
# Either creates a new run using run_name or use existing run_id
|
52
|
-
def submit_results(args = {})
|
53
|
-
sync_tests(
|
52
|
+
def submit_results(ir, args = {})
|
53
|
+
sync_tests(ir) if !@synced
|
54
54
|
suite = @project.find_suite(:name => @suite_name)
|
55
55
|
|
56
56
|
run_name = @config.run_name || args[:run_name] || nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: res
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBC
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-11-
|
13
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -54,6 +54,20 @@ dependencies:
|
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '2.2'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: hive-messages
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '1'
|
64
|
+
type: :runtime
|
65
|
+
prerelease: false
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1'
|
57
71
|
- !ruby/object:Gem::Dependency
|
58
72
|
name: rspec
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|