-
Notifications
You must be signed in to change notification settings - Fork 65
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
Introduce PROVE_OPTS environment variable #117
Comments
How does this relate to HARNESS_OPTIONS? |
@demerphq according to https://perldoc.perl.org/Test::Harness#HARNESS_OPTIONS options are really limited. For example, when IDEA runs tests, it does it with:
And Devel::NYTProf for example, has hardcoded
in the And I need a way to amend the command line without changing the |
So, the --shuffle option and the -P option and the --recurse option aren't covered? I thought recurse is default with 'make test'. FWIW, I use HARNESS_OPTIONS=j16 all the time. As far as I can tell Devel::NYTProf has ptest because historically Test::Harness didnt support parallel jobs. Considering you have to do |
For the IDE the most important things are formatter and plugin allowing to pass environment to the tests. |
I'll try with |
Ok, thank you very much for the hint about existing variables, I totally missed them when implemented testing support. The only thing I still need is possibility to pass |
- use `HARNESS_OPTIONS` to pass formatter and jobs number (still can't pass `--merge`, see Perl-Toolchain-Gang/Test-Harness#117) - use `HARNESS_PERL_SWITCHES` instead of `PassEnv` plugin We need such approach to be able to use any frontend, besides `prove`, e.g. `make test` Fixes #2651
- use `HARNESS_OPTIONS` to pass formatter and jobs number (still can't pass `--merge`, see Perl-Toolchain-Gang/Test-Harness#117) - use `HARNESS_PERL_SWITCHES` instead of `PassEnv` plugin We need such approach to be able to use any frontend, besides `prove`, e.g. `make test` Fixes #2651
Can you explain to me why you think you need it? IME |
I'll re-investigate, added it 4 years ago, can't quite remember. IRR was some mess with tests output. |
- use `HARNESS_OPTIONS` to pass formatter and jobs number (still can't pass `--merge`, see Perl-Toolchain-Gang/Test-Harness#117) - use `HARNESS_PERL_SWITCHES` instead of `PassEnv` plugin We need such approach to be able to use any frontend, besides `prove`, e.g. `make test` Fixes #2651
- use `HARNESS_OPTIONS` to pass formatter and jobs number (still can't pass `--merge`, see Perl-Toolchain-Gang/Test-Harness#117) - use `HARNESS_PERL_SWITCHES` instead of `PassEnv` plugin We need such approach to be able to use any frontend, besides `prove`, e.g. `make test` Fixes #2651
Tests may be run via prove directly or via
make
withmake test
.In latter case, it is not possible to pass additional arguments to the script.
But this may be necessary for the IDE integration. IDE may need to pass it's own formatter, plugin or modify execution mode, like jobs, shufflle, etc.
Makefile.PL
should not depend on development environment, because different users may have different preferences, so would be nice to be able to pass additional arguments via environment variables.One thing that bothers me is that these variable are expected to have higher precedence than command line argument, so IDE could tune execution, but this feels wrong... May be two variables could be introduced, e.g
PROVE_OPTS
andFORCE_PROVE_OPTS
where first has lesser precedence and latter - higher.The text was updated successfully, but these errors were encountered: