DEV: Optionally, run system tests in docker:test

This commit is contained in:
Daniel Waterworth 2023-03-15 16:33:47 -05:00
parent 5324216740
commit 164b60cd07

View File

@ -11,6 +11,7 @@
# => SKIP_PLUGINS set to 1 to skip plugin tests (rspec and qunit)
# => SKIP_INSTALL_PLUGINS comma separated list of plugins you want to skip installing
# => INSTALL_OFFICIAL_PLUGINS set to 1 to install all core plugins before running tests
# => RUN_SYSTEM_TESTS set to 1 to run the system tests as well
# => RUBY_ONLY set to 1 to skip all qunit tests
# => JS_ONLY set to 1 to skip all rspec tests
# => SINGLE_PLUGIN set to plugin name to only run plugin-specific rspec tests (you'll probably want to SKIP_CORE as well)
@ -211,6 +212,8 @@ task "docker:test" do
else
@good &&= run_or_fail("bundle exec rspec #{params.join(" ")}".strip)
end
@good &&= run_or_fail("bundle exec rspec spec/system".strip) if ENV["RUN_SYSTEM_TESTS"]
end
unless ENV["SKIP_PLUGINS"]
@ -220,6 +223,10 @@ task "docker:test" do
fail_fast = "RSPEC_FAILFAST=1" unless ENV["SKIP_FAILFAST"]
@good &&= run_or_fail("#{fail_fast} bundle exec rake plugin:spec")
end
if ENV["RUN_SYSTEM_TESTS"]
@good &&= run_or_fail("LOAD_PLUGINS=1 bundle exec rspec plugins/*/spec/system".strip)
end
end
end