Skip to content

Commit 43fbbd0

Browse files
committed
Adding the possibility to add tests that do
not come from Codingame.
1 parent fd093ac commit 43fbbd0

31 files changed

+13
-1
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
/ci/phpunit.xml
44
/src/**/*.php
55
!/src/Puzzle.php
6+
/tests/**/*.php
7+
!/tests/**/*.dist.php
68
/tools/
79
/vendor/

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.8.0] - 2022-02-14
8+
### Added
9+
- Possibility to add tests that do not come from Codingame.
10+
711
## [2.7.1] - 2022-02-14
812
### Fixed
913
- Test group for "Genome sequencing".

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ Then, add your code to solve the puzzle.
3535
**If you change the class name or do not have an `execute()` method in it, the tests will not be able to run.**
3636

3737

38+
## Add your test (optional)
39+
40+
Every tests in `./tests/**/*Test.dist.php` files include the tests from Codingame.
41+
You can add your own tests in `./tests/**/*Test.php` files.
42+
43+
3844
## Test your solution
3945

4046
Executing all the tests :

ci/phpunit.dist.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<testsuites>
2525
<testsuite name="Project Test Suite">
26-
<directory>../tests</directory>
26+
<directory suffix=".php">../tests</directory>
2727
</testsuite>
2828
</testsuites>
2929

0 commit comments

Comments
 (0)