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

Add option to read lists of tests from file. #100

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

rsmmr
Copy link
Member

@rsmmr rsmmr commented Jan 8, 2024

-i FILE, --tests-file=FILE
    Loads the list of tests to execute from a file. Each line in the
    file is interpreted as the name of a test, or a group of tests, to
    execute, just like the tests would be specified on the command
    line. Empty lines and lines starting with ``#`` are ignored. (This
    format is compatible with that of the ``btest`` `StateFile
    <state_file_>`_.)

Copy link
Member

@bbannier bbannier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my points from #55 which we probably should link still stand, but I am not strongly opposed to this. Maybe but for the options conflict checking this is simple enough, though btest $(cat <FILE>) might have less limitations (e.g., can both "run from file" and specify additional tests on the command line).

btest Outdated Show resolved Hide resolved
@rsmmr
Copy link
Member Author

rsmmr commented Jan 8, 2024

I think my points from #55

Oh, I totally forgot about that one and the discussion there --- just found myself wanting such an option once more. That said, I do prefer this over $(cat <FILE>): easier to both type and remember. And this isn't tied to the state file, so that should avoid any confusion about updating.

@rsmmr rsmmr force-pushed the topic/robin/tests-from-file branch from 24605b7 to fc3b030 Compare January 8, 2024 15:01
```
-i FILE, --tests-file=FILE
    Loads the list of tests to execute from a file. Each line in the
    file is interpreted as the name of a test, or a group of tests, to
    execute, just like the tests would be specified on the command
    line. Empty lines and lines starting with ``#`` are ignored. (This
    format is compatible with that of the ``btest`` `StateFile
    <state_file_>`_.)
```
@rsmmr rsmmr force-pushed the topic/robin/tests-from-file branch from fc3b030 to 3a17cc1 Compare January 9, 2024 07:48
@rsmmr rsmmr merged commit f3d7e29 into master Jan 9, 2024
22 checks passed
@rsmmr rsmmr deleted the topic/robin/tests-from-file branch January 9, 2024 08:16
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.

2 participants