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

Run all tests by default; ability to run tests by arbitrary path(s) #6

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

mattbrictson
Copy link
Owner

Similar to RSpec and the Rails test runner, this commit adds a feature where the mt executable can run multiple tests at once based on command line arguments. When executed with no args, it now runs all tests by default.

# Run all tests
bin/mt

# Run a specific test file
bin/mt test/cli_test.rb

# Run a directory of tests
bin/mt test/commands

# Run many tests/directories at once
bin/mt test/cli_test.rb test/commands

Similar to RSpec and the Rails test runner, this commit adds a feature
where the `mt` executable can run multiple tests at once based on
command line arguments. When executed with no args, it now runs all
tests by default.

```sh
# Run all tests
bin/mt

# Run a specific test file
bin/mt test/cli_test.rb

# Run a directory of tests
bin/mt test/commands

# Run many tests/directories at once
bin/mt test/cli_test.rb test/commands
```
@mattbrictson mattbrictson added ✨ Feature Adds a new feature automerge Automatically merge PR once all required checks pass labels Feb 21, 2024
@kodiakhq kodiakhq bot merged commit dedbded into main Feb 21, 2024
6 checks passed
@kodiakhq kodiakhq bot deleted the run-multiple branch February 21, 2024 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PR once all required checks pass ✨ Feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant