Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resync #1

Open
wants to merge 194 commits into
base: master
Choose a base branch
from
Open

resync #1

wants to merge 194 commits into from

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 <[email protected]>
Co-authored-by: Vladimir Dementyev <[email protected]>
* 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 <[email protected]>
This is to ensure that if tests were run in parallel, that values would
not override each other/be used from other threads.
@palkan palkan force-pushed the master branch 3 times, most recently from 01a9318 to 2379243 Compare December 14, 2024 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.