Skip to content

Conversation

@tikkss
Copy link
Contributor

@tikkss tikkss commented Jun 27, 2025

GitHub: fix GH-311

This is a follow-up to GH-312 and the final patch to fix GH-311.
This patch will reduce dependency on $LOAD_PATH.

It replaces require with require_relative for internal library files in test/.

If you want to run tests against the installed test-unit, you can still use the test/ directory like this:

This example runs tests against the installed test-unit version 3.6.8.

$ ruby -I $(gem env home)/gems/test-unit-3.6.8/lib bin/test-unit test

GitHub: fix test-unitGH-311

This is a follow-up to test-unitGH-312 and the final patch to fix test-unitGH-311.
This patch will reduce dependency on `$LOAD_PATH`.

It replaces `require` with `require_relative` for internal library
files in `test/`.

If you want to run tests against the installed `test-unit`, you can
still use the `test/` directory like this:

This example runs tests against the installed `test-unit` version 3.6.8.

```console
$ ruby -I $(gem env home)/gems/test-unit-3.6.8/lib bin/test-unit test
```
@kou kou merged commit e837be2 into test-unit:master Jun 28, 2025
36 checks passed
@tikkss tikkss deleted the use-require-relative-instead-of-require branch June 28, 2025 21:34
@tikkss
Copy link
Contributor Author

tikkss commented Jun 28, 2025

Thanks for your review!

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.

Use require_relative instead of require

2 participants