Skip to content

Conversation

@jwoodrow
Copy link

No description provided.

Ivan Shamatov and others added 30 commits August 10, 2021 21:16
[This commit](2503464)
changed the way we detect the context for fetching the `let_it_be`
defined variables, matching only the `before(:context)`. Those variables
should be accessible by both before/after, so this adds back the generic
`:context` matcher to support all hooks.
…or minitest.

When the test suite is run in parallel, the run method only enqueues the
test jobs and returns right after that, so we mustn't roll back the
transaction at that point.
Instead, intercept the Minitest.run_one_method call that actually runs
a test case. In each process, we will keep track of when the last test
case of a test file has run, and roll back the transaction in that moment.
This works because test cases from different test files are added to
the queue and processed in order, i.e. once we see a test case from a 
different class/test file, no test cases from the previous test file will
be run anymore.
parallelize_teardown allows registering callbacks that are run after
parallel test execution. It is called after all tests are run and before
the forked processes are closed, so we can use it to clean up the last
of the before_all transactions.
All recent versions of JRuby support unicode identifiers.
* Respect the printer on the configure block

It was being cached and ignoring the one defined the configuration

* Update CHANGELOG

* Fix rubocop warnings

* Satisfy rubocop

* Update CHANGELOG.md

Co-authored-by: Guillermo Siliceo <guillermo.siliceo@gmail.com>
Co-authored-by: Vladimir Dementyev <dementiev.vm@gmail.com>
* restore the lock_thread value after rollback

* use :@lock_thread instead of "@lock_thread"

* avoid instance variable collisions with cats

* add a changelog entry

Co-authored-by: Vladimir Dementyev <dementiev.vm@gmail.com>
This is to ensure that if tests were run in parallel, that values would
not override each other/be used from other threads.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.