-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
135 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ LineLength: | |
Max: 119 | ||
|
||
MethodLength: | ||
Max: 20 | ||
Max: 40 | ||
|
||
ClassLength: | ||
Max: 200 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module Robottelo | ||
module Reporter | ||
TESTCASE_PROPERTIES_MAPPING = { | ||
pid: 'polarion-testcase-id' | ||
}.freeze | ||
end | ||
PROPERTY_PREFIX = 'polarion' | ||
PROPERTY_PREFIX_CUSTOM = 'polarion-custom' | ||
POLARION_ENV_NAME = 'POLARION_PROPERTIES' | ||
POLARION_CUSTOM_ENV_NAME = 'POLARION_CUSTOM_PROPERTIES' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test/test_helper' | ||
|
||
class ExampleTesCase < MinitestWithAttributes | ||
test_attributes pid: '123456' | ||
def test_example_1 | ||
assert true | ||
end | ||
|
||
test_attributes pid: '123457' | ||
def test_example_2 | ||
assert true | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'test_helper' | ||
|
||
class AttributesTest < MinitestWithAttributes | ||
test_attributes pid: '123456', 'title': '123456 attributes' | ||
def test_attributes_binded__to_test_method | ||
assert_equal({pid: '123456', 'title': '123456 attributes'}, AttributesTest.get_test_attributes(name)) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
if RUBY_VERSION > '2.5' | ||
require 'simplecov' | ||
require 'coveralls' | ||
|
||
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, | ||
Coveralls::SimpleCov::Formatter] | ||
SimpleCov.start do | ||
minimum_coverage 70 | ||
maximum_coverage_drop 0.1 | ||
refuse_coverage_drop | ||
end | ||
end | ||
|
||
$LOAD_PATH.unshift File.expand_path('../lib', __dir__) | ||
|
||
require 'robottelo/reporter/attributes' | ||
require 'minitest/autorun' | ||
|
||
class MinitestWithAttributes < Minitest::Test | ||
extend Robottelo::Reporter::TestAttributes | ||
end |