Skip to content

Make alr test search for a test runner in parent dirs#2076

Merged
mosteo merged 1 commit intoalire-project:masterfrom
AldanTanneo:feat/test-from-subdir
Feb 5, 2026
Merged

Make alr test search for a test runner in parent dirs#2076
mosteo merged 1 commit intoalire-project:masterfrom
AldanTanneo:feat/test-from-subdir

Conversation

@AldanTanneo
Copy link
Member

@AldanTanneo AldanTanneo commented Feb 4, 2026

When running alr test in a crate without a test section, it will search for the first parent crate that defines a test section in the manifest. When it cannot find one, it will fall back to running the legacy actions in the current crate.

A switch was added to the test command to override this behaviour: using --legacy will now always run the legacy test actions, even if a parent crate has a test runner.

Fixes #1930

PR creation checklist
  • A test is included, if required by the changes.

@AldanTanneo AldanTanneo requested a review from mosteo February 4, 2026 19:01

This comment was marked as spam.

@mosteo mosteo merged commit 3d94400 into alire-project:master Feb 5, 2026
45 checks passed
@AldanTanneo AldanTanneo deleted the feat/test-from-subdir branch February 6, 2026 13:02
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.

alr test within the test crate?

3 participants