Update tests documentation

This commit is contained in:
Frederic Guillot
2015-08-15 12:09:32 -04:00
parent ba3b31e65a
commit fece613c06
2 changed files with 14 additions and 19 deletions

View File

@@ -18,6 +18,7 @@ Improvements:
* Set dynamically column height based on viewport size * Set dynamically column height based on viewport size
* Enable support for Github Enterprise when using Github Authentication * Enable support for Github Enterprise when using Github Authentication
* Update iCalendar library to display organizer name * Update iCalendar library to display organizer name
* Run automated unit tests with Sqlite/Mysql/Postgres on Travis-ci
Bug fixes: Bug fixes:

View File

@@ -63,7 +63,7 @@ By default, those credentials are used:
- Hostname: **localhost** - Hostname: **localhost**
- Username: **root** - Username: **root**
- Password: nothing (blank) - Password: none
- Database: **kanboard_unit_test** - Database: **kanboard_unit_test**
For each execution the database is dropped and created again. For each execution the database is dropped and created again.
@@ -96,7 +96,7 @@ By default, those credentials are used:
- Hostname: **localhost** - Hostname: **localhost**
- Username: **postgres** - Username: **postgres**
- Password: **postgres** - Password: none
- Database: **kanboard_unit_test** - Database: **kanboard_unit_test**
Be sure to allow the user `postgres` to create and drop databases. Be sure to allow the user `postgres` to create and drop databases.
@@ -158,25 +158,19 @@ Time: 1.72 seconds, Memory: 4.25Mb
OK (42 tests, 160 assertions) OK (42 tests, 160 assertions)
``` ```
Continuous Integration with Travis Continuous Integration with Travis-ci
---------------------------------- -------------------------------------
After each commit pushed on the main repository, unit tests are executed across 4 different major versions of PHP. After each commit pushed on the main repository, unit tests are executed across 5 different versions of PHP:
The Travis config file `.travis.yml` is located on the root directory of Kanboard: - PHP 7.0
- PHP 5.6
- PHP 5.5
- PHP 5.4
- PHP 5.3
```yaml Each version of PHP is tested against the 3 supported database: Sqlite, Mysql and Postgresql.
language: php
php: That mean we run 15 jobs each time the repository is updated. The execution time is around 25 minutes.
- "5.6"
- "5.5"
- "5.4"
- "5.3"
before_script: wget https://phar.phpunit.de/phpunit.phar The Travis config file `.travis.yml` is located on the root directory of Kanboard.
script: php phpunit.phar -c tests/units.sqlite.xml
```
As you can see, tests are executed with PHP 5.3, 5.4, 5.5 and 5.6.
However, only Sqlite unit tests are executed on Travis.