diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-02-25 21:02:57 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-02-25 21:02:57 +0300 |
commit | 820d227b9e233b8bb8c78b49ef4a26f757e86953 (patch) | |
tree | 02c7c237731bd42bbf44c4631bc8085983dbc288 /features/steps/shared | |
parent | 8d3e5cf0db1aa811f2f9263092b8d7740acec5a6 (diff) | |
parent | f36fde94d0f72bc86abf4a424710f9e5c72cfc30 (diff) |
Merge remote-tracking branch 'origin/Baertierchen/gitlab-ce-showTestCoverage'
Diffstat (limited to 'features/steps/shared')
-rw-r--r-- | features/steps/shared/builds.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/features/steps/shared/builds.rb b/features/steps/shared/builds.rb index 0bd5d93b997..f33ed7834fe 100644 --- a/features/steps/shared/builds.rb +++ b/features/steps/shared/builds.rb @@ -5,9 +5,13 @@ module SharedBuilds @project.enable_ci end + step 'project has coverage enabled' do + @project.update_attribute(:build_coverage_regex, /Coverage (\d+)%/) + end + step 'project has a recent build' do @ci_commit = create(:ci_commit, project: @project, sha: @project.commit.sha) - @build = create(:ci_build, commit: @ci_commit) + @build = create(:ci_build_with_coverage, commit: @ci_commit) end step 'recent build is successful' do |