test_rail_integration 0.0.8.3 → 0.0.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f140aef8b78ccaef86afb9b9a76591fdb85f4681
4
- data.tar.gz: 507af599a9e2f715736a7398800e33fdc1d68707
3
+ metadata.gz: 0e772a2e9a834dcd76eeaa02f8e7708bb89b633b
4
+ data.tar.gz: b681a5bd8585ba2efd51114592c9664ea514d4e3
5
5
  SHA512:
6
- metadata.gz: 6a8874e5145e6f62023369d4e5e3c6b628a5f1c61fabf6d58c8157cc9d62942d9ba97f5d61f95280e13695eb789e5cf2ee86a10cbdeb67483f6e3188a5965108
7
- data.tar.gz: 026b0fd649a021e4fe749e2fd61a3f4393a6519c1dd6ec2d34721634410d0eef57315162bee7622b2ea6f60776d82bb278690a575a888f228416fa82712dd1dc
6
+ metadata.gz: b6f0b14e636078ba0c215d44c14b11fc036906ddc767eb38d9db509d3351d930231b746d978f95f8b31f48b3a7a37684455eb7ac053b17c1a19616253effef8d
7
+ data.tar.gz: 36ceea95180f0b21550064a024b7ecaf1d651a7e5551744d9a409581195d5a3b74ef194e85002642dda82872191961c7ae0704da4138365524723001f0de3ae2
data/Gemfile.lock CHANGED
@@ -1,21 +1,9 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- builder (3.2.2)
5
- cucumber (1.3.19)
6
- builder (>= 2.1.2)
7
- diff-lcs (>= 1.1.3)
8
- gherkin (~> 2.12)
9
- multi_json (>= 1.7.5, < 2.0)
10
- multi_test (>= 0.1.2)
11
4
  diff-lcs (1.2.5)
12
- docile (1.1.5)
13
5
  fileutils (0.7)
14
6
  rmagick (>= 2.13.1)
15
- gherkin (2.12.2)
16
- multi_json (~> 1.3)
17
- multi_json (1.11.0)
18
- multi_test (0.1.2)
19
7
  rmagick (2.13.4)
20
8
  rspec (3.2.0)
21
9
  rspec-core (~> 3.2.0)
@@ -30,21 +18,12 @@ GEM
30
18
  diff-lcs (>= 1.2.0, < 2.0)
31
19
  rspec-support (~> 3.2.0)
32
20
  rspec-support (3.2.2)
33
- simplecov (0.9.2)
34
- docile (~> 1.1.0)
35
- multi_json (~> 1.0)
36
- simplecov-html (~> 0.9.0)
37
- simplecov-html (0.9.0)
38
- simplecov-teamcity-summary (0.1.1)
39
- simplecov
40
21
  thor (0.19.1)
41
22
 
42
23
  PLATFORMS
43
24
  ruby
44
25
 
45
26
  DEPENDENCIES
46
- cucumber
47
27
  fileutils
48
28
  rspec
49
- simplecov-teamcity-summary
50
29
  thor
@@ -1,11 +1,11 @@
1
1
  :connection_data:
2
- :url: #put here url of your TestRail server
3
- :username: #TestRail username
4
- :password: #Password for TestRail user
2
+ :url: https://mlp.testrail.com
3
+ :username: Twilight
4
+ :password: Sparkle
5
5
 
6
- :project: # Test project id can be found in Test Rail
7
- :test_suite: # Test suite id can be found in Test Rail
8
- :assigned_to: # Id of person could be found in Test Rail
6
+ :project: 2 # Test project id can be found in Test Rail
7
+ :test_suite: 63 # Test suite id can be found in Test Rail
8
+ :assigned_to: 27 # Id of person could be found in Test Rail
9
9
  :description_of_run: "Automatically generated report by auto tests."
10
10
 
11
11
  :status_comment: 0
@@ -22,9 +22,9 @@
22
22
 
23
23
  :in_progress: " (in progress)" #value for changing test run name for monitoring complete of test run
24
24
 
25
- :test_run_id: 0 #parametrized test run from "ruby run_test_run.rb <test run number>"
25
+ :test_run_id: 513
26
26
 
27
- :exec_command: "cucumber -p lazada.#{parameters.venture}.#{parameters.environment} TESTRAIL=1 --color -f json -o cucumber.json -t "
27
+ :exec_command: "cucumber -p lazada.#{parameters.venture}.#{parameters.environment} TESTRAIL=1 --format AllureCucumber::Formatter DRIVER=grid SELENIUM_GRID_SERVER_URL=http://192.168.100.1:4444/wd/hub -t "
28
28
 
29
- :types: #types for filtering from Test Rail
29
+ :types: 4 #types for filtering from Test Rail
30
30
 
@@ -58,12 +58,12 @@ module TestRail
58
58
  # Get indexes of failed results
59
59
  #
60
60
  def get_indexes_of_fails
61
- indexes = self.test_results.map.with_index { |result, index| result["status_id"] == TestCaseResult::COMMENT[:fail][:status] ? index : nil }
61
+ indexes = self.test_results.map.with_index { |result, index| result["status_id"] == COMMENT[:fail][:status] ? index : nil }
62
62
  indexes.compact
63
63
  end
64
64
 
65
65
  def get_indexes_of_passes
66
- indexes = self.test_results.map.with_index { |result, index| result["status_id"] == TestCaseResult::COMMENT[:pass][:status] ? index : nil }
66
+ indexes = self.test_results.map.with_index { |result, index| result["status_id"] == COMMENT[:pass][:status] ? index : nil }
67
67
  indexes.compact
68
68
  end
69
69
 
@@ -10,8 +10,5 @@ module TestRail
10
10
  TestRail::TestCaseResult.new(scenario).update
11
11
  end
12
12
 
13
- at_exit do
14
- TestRail::Connection.change_test_run_name until ENV['rspec-tests-running']
15
- end
16
13
  end
17
14
  end
@@ -1,3 +1,3 @@
1
1
  module TestRailIntegration
2
- VERSION = "0.0.8.3"
2
+ VERSION = "0.0.8.4"
3
3
  end
data/spec/hooks_spec.rb CHANGED
@@ -4,10 +4,6 @@ require_relative '../lib/test_rail_integration/generator/test_rail_hooks'
4
4
 
5
5
  describe 'Update test results' do
6
6
 
7
- before(:all) do
8
- ENV['rspec-tests-running'] = '1'
9
- end
10
-
11
7
  before(:each) do
12
8
  allow(TestRail::Connection).to receive(:commit_test_result).and_return('good!')
13
9
  @scenario = double('scenario')
@@ -3,9 +3,6 @@ require_relative '../lib/test_rail_integration/generator/connection'
3
3
  require_relative '../lib/test_rail_integration/generator/test_rail_hooks'
4
4
 
5
5
  describe 'Scenario types' do
6
- before(:all) do
7
- ENV['rspec-tests-running'] = '1'
8
- end
9
6
 
10
7
  context 'when scenario outline received' do
11
8
 
@@ -42,7 +39,7 @@ describe 'Scenario types' do
42
39
  allow(@scenario).to receive(:passed?).and_return(false)
43
40
  end
44
41
 
45
- it 'should receive outline title and execption' do
42
+ it 'should receive outline title and exception' do
46
43
  test_result = TestRail::Hook.update_test_rail(@scenario)
47
44
  expect(test_result.test_case_id).to eq('4556')
48
45
  expect(test_result.comment).to eq({:status => 5, :comment => 'test **failed:**'})
@@ -51,7 +48,7 @@ describe 'Scenario types' do
51
48
  end
52
49
  end
53
50
 
54
- context 'when standart scenario received' do
51
+ context 'when standard scenario received' do
55
52
 
56
53
  before(:each) do
57
54
  allow(TestRail::Connection).to receive(:commit_test_result).and_return('good!')
@@ -71,7 +68,7 @@ describe 'Scenario types' do
71
68
  allow(@scenario).to receive(:passed?).and_return(true)
72
69
  end
73
70
 
74
- it "should keep title from scenrio" do
71
+ it 'should keep title from scenario' do
75
72
  test_result = TestRail::Hook.update_test_rail(@scenario)
76
73
  expect(test_result.test_case_id).to eq('4556')
77
74
  expect(test_result.comment).to eq({:status => 1, :comment => 'test **passed:**'})
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_rail_integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8.3
4
+ version: 0.0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirikami
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-26 00:00:00.000000000 Z
11
+ date: 2015-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler