NAME
App::Yath::Options::Resource - FIXME
DESCRIPTION
SYNOPSIS
PROVIDED OPTIONS
Resource Options
- -x2
- --job-slots 2
- --slots-per-job 2
- --no-job-slots
-
This sets the number of slots each job will use (default 1). This is normally set by the ':#' in '-j#:#'.
Can also be set with the following environment variables:
T2_HARNESS_JOB_CONCURRENCY
The following environment variables will be cleared after arguments are processed:
T2_HARNESS_JOB_CONCURRENCY
- -RMyResource
- -R +My::Resource
- -R MyResource=opt1,opt2
- -R MyResource,MyOtherResource
- -R=:{ MyResource opt1,opt2,... }:
- -R :{ MyResource :{ opt1 opt2 }: }:
- --resource +My::Resource
- --resources +My::Resource
- --resource MyResource=opt1,opt2
- --resources MyResource=opt1,opt2
- --resource MyResource,MyOtherResource
- --resources MyResource,MyOtherResource
- --resource=:{ MyResource opt1,opt2,... }:
- --resources=:{ MyResource opt1,opt2,... }:
- --resource :{ MyResource :{ opt1 opt2 }: }:
- --resources :{ MyResource :{ opt1 opt2 }: }:
- --no-resources
-
Specify resources. Use "+" to give a fully qualified module name. Without "+" "App::Yath::Resource::" and "Test2::Harness::Resource::" will be searched for a matching resource module.
Note: Can be specified multiple times
- -j4
- -j8:2
- --jobs 4
- --slots 4
- --jobs 8:2
- --slots 8:2
- --job-count 4
- --job-count 8:2
- --no-slots
-
Set the number of concurrent jobs to run. Add a :# if you also wish to designate multiple slots per test. 8:2 means 8 slots, but each test gets 2 slots, so 4 tests run concurrently. Tests can find their concurrency assignemnt in the "T2_HARNESS_MY_JOB_CONCURRENCY" environment variable.
Can also be set with the following environment variables:
YATH_JOB_COUNT
,T2_HARNESS_JOB_COUNT
,HARNESS_JOB_COUNT
The following environment variables will be cleared after arguments are processed:
YATH_JOB_COUNT
,T2_HARNESS_JOB_COUNT
,HARNESS_JOB_COUNT
Note: If System::Info is installed, this will default to half the cpu core count, otherwise the default is 2.
SOURCE
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.
MAINTAINERS
AUTHORS
COPYRIGHT
Copyright Chad Granum <exodist7@gmail.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.