You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog.markdown
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,19 @@ title: Codeception Changelog
7
7
8
8
# Changelog
9
9
10
+
#### 2.4.3
11
+
12
+
*[Create your own test formats](https://codeception.com/docs/07-AdvancedUsage#Formats) (e.g., Cept, Cest, ...); by **[mlambley](https://github.com/mlambley)**
13
+
***[Symfony]** Fixed a bug in order to use multiple Kernels; by **[alefcastelo](https://github.com/alefcastelo)**
14
+
***[Asserts]** Added new methods `assertNotTrue` and `assertNotFalse` methods; by **[johannesschobel](https://github.com/johannesschobel)**
15
+
*[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](https://github.com/johannesschobel)**
16
+
* Improved the docs; by community
17
+
10
18
#### 2.4.2
11
19
12
20
* Added support for `extends` in the `codeception.yml` and `*.suite.yml` files; by **[johannesschobel](https://github.com/johannesschobel)**.
13
21
Allows to inherit current config from a provided file. See example for `functional.suite.yml`:
Copy file name to clipboardExpand all lines: docs/07-AdvancedUsage.md
+51-3Lines changed: 51 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -548,7 +548,7 @@ public function myTest(\AcceptanceTester $I, \Codeception\Scenario $scenario)
548
548
549
549
{% endhighlight %}
550
550
551
-
`Codeception\Scenario` is also availble in Actor classes and StepObjects. You can access it with `$this->getScenario()`.
551
+
`Codeception\Scenario` is also available in Actor classes and StepObjects. You can access it with `$this->getScenario()`.
552
552
553
553
### Dependencies
554
554
@@ -739,9 +739,57 @@ groups:
739
739
740
740
This will load all found `p*` files in `tests/_data` as groups. Group names will be as follows p1,p2,...,pN.
741
741
742
-
## Shell autocompletion
742
+
## Formats
743
743
744
-
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):
744
+
In addition to the standard test formats (Cept, Cest, Unit, Gherkin) you can implement your own format classes to customise your test execution.
745
+
Specify these in your suite configuration:
746
+
747
+
{% highlight yaml %}
748
+
749
+
formats:
750
+
- \My\Namespace\MyFormat
751
+
752
+
{% endhighlight %}
753
+
754
+
Then define a class which implements the LoaderInterface
755
+
756
+
{% highlight php %}
757
+
758
+
namespace My\Namespace;
759
+
760
+
class MyFormat implements \Codeception\Test\Loader\LoaderInterface
761
+
{
762
+
protected $tests;
763
+
764
+
protected $settings;
765
+
766
+
public function __construct($settings = [])
767
+
{
768
+
//These are the suite settings
769
+
$this->settings = $settings;
770
+
}
771
+
772
+
public function loadTests($filename)
773
+
{
774
+
//Load file and create tests
775
+
}
776
+
777
+
public function getTests()
778
+
{
779
+
return $this->tests;
780
+
}
781
+
782
+
public function getPattern()
783
+
{
784
+
return '~Myformat\.php$~';
785
+
}
786
+
}
787
+
788
+
{% endhighlight %}
789
+
790
+
## Shell auto-completion
791
+
792
+
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):
0 commit comments