TestInterface supports setting arguments to be called with test definitions via getDefinitionArguments and setDefinitionArguments. This should be useful for passing arguments to test or suite definitions via plugins.
Since suites generally execute early to build test trees, a new suite.define event has been added, and listeners receive the suite that has just been defined. This event is where to hook in for setting suite definition arguments.
For instances of Test - the classic test.run event can be used for the same purpose.
Coverage increased (+1.12%) to 96.19% when pulling 741fd96b47234425773ff9634f1953b2a65cd8c1 on brianium:feature/definition-arguments into 586e10d384cca9805461a4dcd4aae0a2e89c2c5f on peridot-php:master.
Coverage increased (+1.12%) to 96.19% when pulling 741fd96b47234425773ff9634f1953b2a65cd8c1 on brianium:feature/definition-arguments into 586e10d384cca9805461a4dcd4aae0a2e89c2c5f on peridot-php:master.
TestInterface
supports setting arguments to be called with test definitions viagetDefinitionArguments
andsetDefinitionArguments
. This should be useful for passing arguments to test or suite definitions via plugins.Since suites generally execute early to build test trees, a new
suite.define
event has been added, and listeners receive the suite that has just been defined. This event is where to hook in for setting suite definition arguments.For instances of
Test
- the classictest.run
event can be used for the same purpose.Fixes #134