*[Create your own test formats](https://codeception.com/docs/07-AdvancedUsage#Formats)(e.g., Cept, Cest, ...); by @mlambley
*[Symfony] Fixed a bug in order to use multiple Kernels; by @alefcastelo
*[Asserts] Added new methods `assertNotTrue` and `assertNotFalse` methods; by @johannesschobel
*[REST][PhpBrowser][Frameworks] Added new methods to check for `Http Status Ranges` with nice "wrappers" (e.g., `seeHttpStatusCodeIsSuccessful()` checks the code between 200 and 299); by @johannesschobel
* Improved the docs; by community
#### 2.4.2
* Added support for `extends` in the `codeception.yml` and `*.suite.yml` files; by @johannesschobel.
Allows to inherit current config from a provided file. See example for `functional.suite.yml`:
@@ -497,7 +497,7 @@ public function myTest(\AcceptanceTester $I, \Codeception\Scenario $scenario)
}
```
`Codeception\Scenario` is also availble in Actor classes and StepObjects. You can access it with `$this->getScenario()`.
`Codeception\Scenario` is also available in Actor classes and StepObjects. You can access it with `$this->getScenario()`.
### Dependencies
...
...
@@ -661,9 +661,53 @@ groups:
This will load all found `p*` files in `tests/_data` as groups. Group names will be as follows p1,p2,...,pN.
## Shell autocompletion
## Formats
For bash and zsh shells, you can use autocompletion for your Codeception projects by executing the following in your shell (or add it to your .bashrc/.zshrc):
In addition to the standard test formats (Cept, Cest, Unit, Gherkin) you can implement your own format classes to customise your test execution.
Specify these in your suite configuration:
```yaml
formats:
-\My\Namespace\MyFormat
```
Then define a class which implements the LoaderInterface
For bash and zsh shells, you can use auto-completion for your Codeception projects by executing the following in your shell (or add it to your .bashrc/.zshrc):
*`suite_namespace`: default namespace for new tests of this suite (ignores `namespace` option)
*`env`: override any configuration per [environment](http://codeception.com/docs/07-AdvancedUsage#Environments).
*`groups`: [groups](http://codeception.com/docs/07-AdvancedUsage#Groups) with the list of tests of for corresponding group.
*`formats`: [formats](http://codeception.com/docs/07-AdvancedUsage#Formats) with the list of extra test format classes.
*`coverage`: pre suite [CodeCoverage](http://codeception.com/docs/11-Codecoverage#Configuration) settings.
*`gherkin`: per suite [BDD Gherkin](http://codeception.com/docs/07-BDD#Configuration) settings.
*`error_level`: [error level](http://codeception.com/docs/04-FunctionalTests#Error-Reporting) for runner in current suite. Should be specified for unit, integration, functional tests. Passes value to `error_reporting` function.