summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-15 12:09:32 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-15 12:09:32 -0400
commitfece613c06aeb8e5bb65ffb94788ba015014d183 (patch)
treef2cc252f806b41e3c16f6f3e713a2fd552961291
parentba3b31e65a7461f4a85c57b7b77701ef8a6bdab4 (diff)
Update tests documentation
-rw-r--r--ChangeLog1
-rw-r--r--docs/tests.markdown32
2 files changed, 14 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index 17b687e6..da3cad9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ Improvements:
* Set dynamically column height based on viewport size
* Enable support for Github Enterprise when using Github Authentication
* Update iCalendar library to display organizer name
+* Run automated unit tests with Sqlite/Mysql/Postgres on Travis-ci
Bug fixes:
diff --git a/docs/tests.markdown b/docs/tests.markdown
index f3f6232f..31937f33 100644
--- a/docs/tests.markdown
+++ b/docs/tests.markdown
@@ -63,7 +63,7 @@ By default, those credentials are used:
- Hostname: **localhost**
- Username: **root**
-- Password: nothing (blank)
+- Password: none
- Database: **kanboard_unit_test**
For each execution the database is dropped and created again.
@@ -96,7 +96,7 @@ By default, those credentials are used:
- Hostname: **localhost**
- Username: **postgres**
-- Password: **postgres**
+- Password: none
- Database: **kanboard_unit_test**
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)
```
-Continuous Integration with Travis
-----------------------------------
-
-After each commit pushed on the main repository, unit tests are executed across 4 different major versions of PHP.
+Continuous Integration with Travis-ci
+-------------------------------------
-The Travis config file `.travis.yml` is located on the root directory of Kanboard:
+After each commit pushed on the main repository, unit tests are executed across 5 different versions of PHP:
-```yaml
-language: php
+- PHP 7.0
+- PHP 5.6
+- PHP 5.5
+- PHP 5.4
+- PHP 5.3
-php:
- - "5.6"
- - "5.5"
- - "5.4"
- - "5.3"
+Each version of PHP is tested against the 3 supported database: Sqlite, Mysql and Postgresql.
-before_script: wget https://phar.phpunit.de/phpunit.phar
-script: php phpunit.phar -c tests/units.sqlite.xml
-```
+That mean we run 15 jobs each time the repository is updated. The execution time is around 25 minutes.
-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.
+The Travis config file `.travis.yml` is located on the root directory of Kanboard.