DEV: initial system tests for chat and plugins (#18881)

This is a very basic to ensure it's working and open future possible work
This commit is contained in:
Joffrey JAFFEUX
2022-11-04 15:06:24 +01:00
committed by GitHub
parent 518707c42a
commit 11f3618b80
5 changed files with 40 additions and 12 deletions

View File

@ -174,7 +174,9 @@ def spec(plugin, parallel: false)
params << "--seed #{ENV['RSPEC_SEED']}" if Integer(ENV['RSPEC_SEED'], exception: false)
ruby = `which ruby`.strip
files = Dir.glob("./plugins/#{plugin}/spec/**/*_spec.rb").sort
# reject system specs as they are slow and need dedicated setup
files =
Dir.glob("./plugins/#{plugin}/spec/**/*_spec.rb").reject { |f| f.include?("spec/system/") }.sort
if files.length > 0
cmd = parallel ? "bin/turbo_rspec" : "bin/rspec"
sh "LOAD_PLUGINS=1 #{cmd} #{files.join(' ')} #{params.join(' ')}"