DEV: Enable color CI output and tweak formatting (#21527)

* Color for turbo_rspec in CI (`progress` and `documentation` formats)
* Show "DONE" only when `documentation` formatter is used
* Fix formatting
* Collapse RSpec commands
* Add line wrapping to the `progress` formatter (to mitigate GH Actions issue)
This commit is contained in:
Jarek Radosz
2023-05-12 18:22:15 +02:00
committed by GitHub
parent b32cdb0880
commit eec10efc3d
7 changed files with 83 additions and 7 deletions

View File

@ -180,7 +180,9 @@ def spec(plugin, parallel: false, argv: nil)
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(" ")}"
puts cmd if !parallel
system("LOAD_PLUGINS=1 #{cmd} #{files.join(" ")} #{params.join(" ")}")
else
abort "No specs found."
end