New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the unit tests in parallel #663

Merged
merged 1 commit into from Jun 12, 2018
Jump to file or symbol
Failed to load files and symbols.
+16 鈭2
Diff settings

Always

Just for now

Copy path View file
@@ -0,0 +1 @@
service_name: travis-ci
Copy path View file
@@ -2,3 +2,4 @@ coverage/
.yardoc/
doc/autodocs
*.pot
tmp/parallel_runtime_rspec.log
Copy path View file
@@ -0,0 +1 @@
--format progress --format ParallelTests::RSpec::RuntimeLogger --out tmp/parallel_runtime_rspec.log
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 12 13:11:07 UTC 2018 - lslezak@suse.cz
- Use parallel_tests to speed up running the unit tests
(bsc#1094875), active only in SLE15-SP1/Leap-15.1
-------------------------------------------------------------------
Tue Jun 12 08:40:48 UTC 2018 - ancor@suse.com
Copy path View file
@@ -47,6 +47,10 @@ BuildRequires: yast2 >= 4.0.73
BuildRequires: yast2-ruby-bindings >= 4.0.6
BuildRequires: rubygem(yast-rake)
BuildRequires: rubygem(rspec)
# speed up the tests in SLE15-SP1+
%if 0%{?sle_version} >= 150100
BuildRequires: rubygem(parallel_tests)
%endif
# communicate with udisks
BuildRequires: rubygem(ruby-dbus)
PreReq: %fillup_prereq
Copy path View file
@@ -53,8 +53,9 @@ def require(path)
# track all ruby files under src
SimpleCov.track_files("#{SRC_PATH}/lib/**/*.rb")
# use coveralls for on-line code coverage reporting at Travis CI
if ENV["TRAVIS"]
# use coveralls for on-line code coverage reporting at Travis CI,
# coverage in parallel tests is handled directly by the "test:unit" task
if ENV["TRAVIS"] && !ENV["PARALLEL_TEST_GROUPS"]
require "coveralls"
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
ProTip! Use n and p to navigate between commits in a pull request.