This repository was archived by the owner on May 17, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
HykuAddons: Testing
Paul Danelli edited this page Feb 18, 2022
·
1 revision
Tests are run automatically on CircleCI with rubocop and codeclimate. These tests must pass before pull requests can be merged.
To run the tests locally inside docker run:
docker-compose exec web rspecThe test suite uses feature/system specs that can take a long time to run locally, in order to make local development more practical, these slow tests are not run by default - All these tests slow tests are run on CI by default.
Use the following command to run them locally:
docker-compose exec web rspec --tag @slowIf you find that you are trying to run a specific spec and seeing the following:
$ docker-compose exec web bundle exec rspec ./spec/features/bulkrax_dynamic_import_spec.rb
Finished in 1.65 seconds (files took 13.74 seconds to load)
0 examples, 0 failuresThis implies that the test you're trying to run has been tagged as a slow test and needs you to run it with the tag.
$ docker-compose exec web bundle exec rspec ./spec/features/bulkrax_dynamic_import_spec.rb --tag @slow
Top 2 slowest examples (41.46 seconds, 96.3% of total time):
Bulkrax import imports UvaWork works
29.59 seconds ./spec/features/bulkrax_dynamic_import_spec.rb:43
Bulkrax import imports UbiquityTemplateWork works
11.87 seconds ./spec/features/bulkrax_dynamic_import_spec.rb:43
Finished in 43.05 seconds (files took 14.85 seconds to load)
2 examples, 0 failures