Port 3286 - Add ability to control which Elixir integration tests to run#3752
Merged
iilyak merged 8 commits intoapache:3.xfrom Sep 17, 2021
Merged
Port 3286 - Add ability to control which Elixir integration tests to run#3752iilyak merged 8 commits intoapache:3.xfrom
iilyak merged 8 commits intoapache:3.xfrom
Conversation
9516c7c to
5e03244
Compare
New `elixir-suite` Makefile target is added. It runs a predefined set of elixir integration tests. The feature is controlled by two files: - test/elixir/test/config/suite.elixir - contains list of all available tests - test/elixir/test/config/skip.elixir - contains list of tests to skip In order to update the `test/elixir/test/config/suite.elixir` when new tests are added. The one would need to run the following command: ``` MIX_ENV=integration mix suite > test/elixir/test/config/suite.elixir ```
garrensmith
approved these changes
Sep 16, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
The main purpose of this PR is to port #3286 to 3.x. Which adds ability to run elixir suite against already running instance of CouchDB. However due to various changes to underlying build infrastructure few other commits and PRs were added into the mix.
--erlang-configflag from fff07baThere were couple of fixups to make test suite pass
Code.require_fileto injectpartition_helpers.exsandreshard_helpers.exs. The original implementation ofCouch.Test.Suitein #3286 didn't support test helpers.ensure_exunit_started()function. We usedProcess.gett/2instead ofProcess.put/2(seeensure_exunit_started()).mainwithout updatingtest/elixir/test/config/suite.elixirTesting recommendations
1 Make sure that tests discovery works
2 Make sure the tests run and pass by using
make elixir-suiteRelated Issues or Pull Requests
Checklist
rel/overlay/etc/default.ini