Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy