Skip to content

Commit

Permalink
Use PERLPOWERTOOLS_PROGRAMS to decide what to test
Browse files Browse the repository at this point in the history
There are two test situations that I want to make work.

1. Test everything
2. Test what I'm working on write now

By default, the tests run all the checks on all of
the programs under bin/ (other than perlpowertools and perldoc).

To run tests for a particular program, set the 
PERLPOWERTOOLS_PROGRAMS env var to the basename of
the programs you want:

env PERLPOWERTOOLS_PROGRAMS=mimedecode perl t/000.basic.t

env PERLPOWERTOOLS_PROGRAMS=mimedecode,whois perl t/000.basic.t

This is incomplete because we still need a way to 
go through all of t/ and skip directories that don't correspond to the programs we want to limit 
the test tests to.
  • Loading branch information
briandfoy committed Jun 17, 2023
1 parent b10c42f commit d4f0039
Show file tree
Hide file tree
Showing 369 changed files with 169 additions and 5,839 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Expand Up @@ -34,7 +34,7 @@ things you need to do:
* Run `make manifest` and check that it adds your new command and tests

For new programs, include tests with as high a coverage as you can
stand.
stand. Each program should have its own directory under *t/*.

<a name="pull-requests"></a>
## Pull requests
Expand Down

0 comments on commit d4f0039

Please sign in to comment.