diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-05 15:10:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-05 15:10:17 +0300 |
commit | 1c359370b3970c41dd8aa0c69fe177f39cb58298 (patch) | |
tree | 2ca6226176233e0340dcbf01d7134d5e0fa2faf5 /spec/simplecov_env.rb | |
parent | 26d28ba1597a9ce3018206475fa3dfdb42829656 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/simplecov_env.rb')
-rw-r--r-- | spec/simplecov_env.rb | 65 |
1 files changed, 33 insertions, 32 deletions
diff --git a/spec/simplecov_env.rb b/spec/simplecov_env.rb index 78a78f5bcbf..098c38ff212 100644 --- a/spec/simplecov_env.rb +++ b/spec/simplecov_env.rb @@ -54,39 +54,40 @@ module SimpleCovEnv SimpleCov.configure do load_profile 'test_frameworks' - add_filter '/bin/' - add_filter 'db/fixtures/development/' # Matches EE files as well - add_filter %r|db/migrate/\d{14}_init_schema\.rb\z| # Matches EE files as well - add_filter '/gems/' - add_filter '/vendor/' + add_filter %r{^/(ee/)?(bin|gems|vendor)} + add_filter %r{^/(ee/)?db/fixtures/development} + add_filter %r{^/(ee/)?db/migrate/\d{14}_init_schema\.rb\z} - add_group 'Channels', 'app/channels' # Matches EE files as well - add_group 'Components', 'app/components' # Matches EE files as well - add_group 'Config', %w[/config /ee/config] - add_group 'Controllers', 'app/controllers' # Matches EE files as well - add_group 'Elastic migrations', 'ee/elastic' - add_group 'Enums', 'app/enums' # Matches EE files as well - add_group 'Events', 'app/events' # Matches EE files as well - add_group 'Experiments', 'app/experiments' # Matches EE files as well - add_group 'Finders', 'app/finders' # Matches EE files as well - add_group 'Fixtures', 'db/fixtures' # Matches EE files as well - add_group 'GraphQL', 'app/graphql' # Matches EE files as well - add_group 'Helpers', 'app/helpers' # Matches EE files as well - add_group 'Mailers', 'app/mailers' # Matches EE files as well - add_group 'Models', 'app/models' # Matches EE files as well - add_group 'Policies', 'app/policies' # Matches EE files as well - add_group 'Presenters', 'app/presenters' # Matches EE files as well - add_group 'Replicators', 'app/replicators' # Matches EE files as well - add_group 'Serializers', 'app/serializers' # Matches EE files as well - add_group 'Services', 'app/services' # Matches EE files as well - add_group 'Uploaders', 'app/uploaders' # Matches EE files as well - add_group 'Validators', 'app/validators' # Matches EE files as well - add_group 'Views', 'app/views' # Matches EE files as well - add_group 'Workers', 'app/workers' # Matches EE files as well - add_group 'Initializers', %w[config/initializers config/initializers_before_autoloader] # Matches EE files as well - add_group 'Migrations', %w[db/migrate db/optional_migrations db/post_migrate db/geo/migrate db/geo/post_migrate] # Matches EE files as well - add_group 'Libraries', %w[/lib /ee/lib] - add_group 'Tooling', %w[/haml_lint /rubocop /scripts /tooling] + add_group 'Channels', %r{^/(ee/)?app/channels} + add_group 'Components', %r{^/(ee/)?app/components} + add_group 'Config', %r{^/(ee/)?config} + add_group 'Controllers', %r{^/(ee/)?app/controllers} + add_group 'Elastic migrations', %r{^/(ee/)?elastic} + add_group 'Enums', %r{^/(ee/)?app/enums} + add_group 'Events', %r{^/(ee/)?app/events} + add_group 'Experiments', %r{^/(ee/)?app/experiments} + add_group 'Finders', %r{^/(ee/)?app/finders} + add_group 'Fixtures', %r{^/(ee/)?db/fixtures} + add_group 'GraphQL', %r{^/(ee/)?app/graphql} + add_group 'Helpers', %r{^/(ee/)?app/helpers} + add_group 'Initializers', %r{^/(ee/)?config/(initializers|initializers_before_autoloader)} + add_group 'Libraries', %r{^/(ee/)?lib} + add_group 'Mailers', %r{^/(ee/)?app/mailers} + add_group 'Metrics server', %r{^/(ee/)?metrics_server} + add_group 'Migrations', %r{^/(ee/)?db/(geo/)?(migrate|optional_migrations|post_migrate)} + add_group 'Models', %r{^/(ee/)?app/models} + add_group 'Policies', %r{^/(ee/)?app/policies} + add_group 'Presenters', %r{^/(ee/)?app/presenters} + add_group 'Replicators', %r{^/(ee/)?app/replicators} + add_group 'Seeds', %r{^/(ee/)?db/seeds} + add_group 'Serializers', %r{^/(ee/)?app/serializers} + add_group 'Services', %r{^/(ee/)?app/services} + add_group 'Sidekiq cluster', %r{^/(ee/)?sidekiq_cluster} + add_group 'Tooling', %r{^/(ee/)?(danger|haml_lint|rubocop|scripts|tooling)} + add_group 'Uploaders', %r{^/(ee/)?app/uploaders} + add_group 'Validators', %r{^/(ee/)?app/validators} + add_group 'Views', %r{^/(ee/)?app/views} + add_group 'Workers', %r{^/(ee/)?app/workers} merge_timeout 365 * 24 * 3600 end |