diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 06:07:47 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-27 06:07:47 +0000 |
commit | d2b64c37bdef067656fdc8deb4728a2fbc6c2729 (patch) | |
tree | 5cab5936f9c176f81d9749baf4ccbdcf94be9e64 /spec | |
parent | 4560c92ab1954cf0416bafc45d1fa671fcacb3c3 (diff) | |
download | gitlab-ce-d2b64c37bdef067656fdc8deb4728a2fbc6c2729.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/ci/parsers/test/junit_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/parsers/test/junit_spec.rb b/spec/lib/gitlab/ci/parsers/test/junit_spec.rb index da168f6daad..b4be5a41cd7 100644 --- a/spec/lib/gitlab/ci/parsers/test/junit_spec.rb +++ b/spec/lib/gitlab/ci/parsers/test/junit_spec.rb @@ -104,6 +104,20 @@ describe Gitlab::Ci::Parsers::Test::Junit do 'Some error' end + context 'and has skipped' do + let(:testcase_content) { '<skipped/>' } + + it_behaves_like '<testcase> XML parser', + ::Gitlab::Ci::Reports::TestCase::STATUS_SKIPPED, nil + + context 'with an empty double-tag' do + let(:testcase_content) { '<skipped></skipped>' } + + it_behaves_like '<testcase> XML parser', + ::Gitlab::Ci::Reports::TestCase::STATUS_SKIPPED, nil + end + end + context 'and has an unknown type' do let(:testcase_content) { '<foo>Some foo</foo>' } |