Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Allow disabling spec profiling via ENV

Aaron Contreras2ea412073af0
diff --git a/spec/rspec_helper.rb b/spec/rspec_helper.rb
index 7dfa3d9f964..acc4ed4b0e5 100644
--- a/spec/rspec_helper.rb
+++ b/spec/rspec_helper.rb
@@ -98,7 +98,7 @@ RSpec.configure do |config|
# end of the spec run, to help surface which specs are running
# particularly slow.
# Disabled on CI to have a cleaner log output.
- config.profile_examples = 10 unless ENV["CI"]
+ config.profile_examples = 10 unless ENV["CI"] || ENV["NO_PROFILE_EXAMPLES"]
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing