Skip to content

Make it easier to run test files from the command line #635

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

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

jcouball
Copy link
Member

@jcouball jcouball commented Mar 2, 2023

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

  • Ensure all commits include DCO sign-off.
  • Ensure that your contributions pass unit testing.
  • Ensure that your contributions contain documentation if applicable.

Description

Building upon #615, make it so that tests can be run without specifying the directory:

# Run a single test file tests/units/test_archive.rb:
$ bin/test test_archive
...
# Run a multiple test files tests/units/test_archive.rb and tests/units/test_object.rb:
$ bin/test test_archive test_object
...
# Run all tests:
$ bin/test
...

Signed-off-by: James Couball <jcouball@yahoo.com>
@jcouball
Copy link
Member Author

jcouball commented Mar 2, 2023

FYI @urbanautomaton this will make running tests with the full directory fail:

$ bin/test tests/units/test_archive.rb

This will succeed:

$ bin/test test_archive

@jcouball jcouball merged commit 2b1974c into master Mar 2, 2023
@jcouball jcouball deleted the simplify_running_single_tests branch March 2, 2023 01:19
@jcouball jcouball mentioned this pull request Mar 4, 2023
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.

1 participant