testrail_rspec 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17b37cac0d137dcd55f241b808e8ba02fa234a07
4
- data.tar.gz: 5891b2058f8bf42d9d925a51262de4a18e9c89ae
3
+ metadata.gz: 1dbfed627ba3c5bc5519776f56c636eb2698cf6d
4
+ data.tar.gz: 309a93e396bbb6fbc73315cf3c3c002e8cc8bae0
5
5
  SHA512:
6
- metadata.gz: d4c0abc08cc139acc854f1d176f8fde321eb793dd2c882fec3523a52b71d13ac38022f2f1d910f7d5168969b4dbcf4727b6dc976f44eacc1e4b3266284e10faa
7
- data.tar.gz: 21bea9900fd213c483d0634ace6a3d393aa1868437f6fc33617a32ab0dd59dd3a9d816723ccf0fb46e3a900a18f155671d2afe8a33dd82cc4a0c11a7a071730f
6
+ metadata.gz: 5c62032038e3570e1764206d2d5f4ac5161fabda769829e866668a74737b9bf0d8f8cc8d196108c105ac9642f174c8a67766d10915c4037b9ef0d051e6ecd8a2
7
+ data.tar.gz: ae43e0c5d8b6477bf925c3753e7de172a476cab50da4f02aeb7de17a7db4d4955b4ce571c2bcef0dc0a635875565dc4cac0eae9c9044b5c3fc3677a7b0364a73
data/README.md CHANGED
@@ -26,11 +26,11 @@ via RSpec.configure in spec_helper.rb - describe it in more details when decided
26
26
 
27
27
  add to .rspec file this way:
28
28
 
29
- $ --format TestrailRSpec
29
+ $ --format TestrailExport
30
30
 
31
31
  or use it from commandline this way:
32
32
 
33
- $ rspec spec --format TestrailRSpec
33
+ $ rspec spec --format TestrailExport
34
34
 
35
35
  ## Contributing
36
36
 
@@ -16,7 +16,7 @@ require 'net/https'
16
16
  require 'uri'
17
17
  require 'json'
18
18
 
19
- module TestrailRspec
19
+ module Testrail
20
20
 
21
21
  AUTOMATED_DESCRIPTION = 'created by automated test suite'
22
22
 
@@ -3,10 +3,9 @@ require 'rspec/core/formatters/base_text_formatter'
3
3
 
4
4
  require 'rubytree'
5
5
 
6
- require "testrail_rspec/version"
7
- require "testrail_rspec/client"
6
+ require "testrail_export/client"
8
7
 
9
- class TestrailRspec < RSpec::Core::Formatters::BaseTextFormatter
8
+ class TestrailExport < RSpec::Core::Formatters::BaseTextFormatter
10
9
 
11
10
  RSpec.configuration.add_setting :testrail_formatter_options, :default => {}
12
11
 
@@ -28,7 +27,7 @@ class TestrailRspec < RSpec::Core::Formatters::BaseTextFormatter
28
27
  # To start
29
28
  def start(notification)
30
29
  @options = RSpec.configuration.testrail_formatter_options
31
- @client = TestrailRspec::Client.new(@options)
30
+ @client = Testrail::Client.new(@options)
32
31
  @client.get_projects.each { |project| @project_id = project['id'] if project['name'] == @options[:project] }
33
32
 
34
33
  puts "TestRail Exporter [INFO] Executing #{notification.count} tests. Loaded in #{notification.load_time}"
@@ -169,12 +168,10 @@ class TestrailRspec < RSpec::Core::Formatters::BaseTextFormatter
169
168
  run_time_seconds = test_result.run_time.round(0)
170
169
  {
171
170
  case_id: test.content[:case]['id'],
172
- status_id: TestrailRspec::STATUS[test_result.status],
171
+ status_id: Testrail::STATUS[test_result.status],
173
172
  elapsed: (run_time_seconds == 0) ? nil : "#{run_time_seconds}s"
174
173
  }
175
174
  end
176
175
  @client.add_results_for_cases(run_id, results)
177
176
  end
178
-
179
-
180
- end
177
+ end
@@ -1,25 +1,28 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'testrail_rspec/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = "testrail_rspec"
8
- spec.version = TestrailRspec::VERSION
7
+
8
+ spec.version = '0.0.3'
9
+
9
10
  spec.authors = ["Michal Kubik"]
10
11
  spec.email = ["michal.kubik@boost.no"]
11
- spec.summary = %q{RSpec exporter formatter - pushes test run results to TestRail instance.}
12
- spec.description = %q{Allow exporting RSpect test run results into TestRail server.}
13
12
  spec.homepage = "https://github.com/mkubik8080/testrail-rspec"
14
- spec.license = "MIT"
15
13
 
16
- spec.add_runtime_dependency "rubytree", "~> 0.9.4"
14
+ spec.license = "MIT"
15
+ spec.summary = %q{RSpec exporter formatter - pushes test run results to TestRail instance.}
16
+ spec.description = %q{Allow exporting RSpect test run results into TestRail server.}
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0")
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
21
  spec.require_paths = ["lib"]
22
22
 
23
+ spec.add_dependency 'rspec', '~> 3.0'
24
+ spec.add_runtime_dependency "rubytree", "~> 0.9.4"
25
+
23
26
  spec.add_development_dependency "bundler", "~> 1.7"
24
27
  spec.add_development_dependency "rake", "~> 10.0"
25
28
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testrail_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Kubik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-10 00:00:00.000000000 Z
11
+ date: 2014-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: rubytree
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,9 +78,8 @@ files:
64
78
  - LICENSE.txt
65
79
  - README.md
66
80
  - Rakefile
67
- - lib/testrail_rspec.rb
68
- - lib/testrail_rspec/client.rb
69
- - lib/testrail_rspec/version.rb
81
+ - lib/testrail_export.rb
82
+ - lib/testrail_export/client.rb
70
83
  - testrail_rspec.gemspec
71
84
  homepage: https://github.com/mkubik8080/testrail-rspec
72
85
  licenses:
@@ -93,4 +106,3 @@ signing_key:
93
106
  specification_version: 4
94
107
  summary: RSpec exporter formatter - pushes test run results to TestRail instance.
95
108
  test_files: []
96
- has_rdoc:
@@ -1,3 +0,0 @@
1
- module TestrailRspec
2
- VERSION = "0.0.2"
3
- end