Hi,

I have cherry-picked the commits related to the test suite from the
wip-test branch

Most of existing tests are written by Lethargie (my son).

This is still WIP, so still TODO:

- add more tests

- improve test setup/teardown to revert changes (for now, only new
created entries are deleted, this will probably requires innodb [1], and
then begin_transaction / rollback)

- add more tests

- enable travis (need to install the DB) for PHP 5.4, 5.5, 5.6, 7.0

- add more tests

- add a test data set on which tests can rely (profils, users,
entities...), mostly for right management

- add more tests

- start to compute code coverage

- add more tests


For now (very small):

$ phpunit -v
PHPUnit 5.3.4 by Sebastian Bergmann and contributors.
Runtime:       PHP 7.0.7RC1
Configuration: /work/GLPI/master/phpunit.xml.dist
......................................................  54 / 54 (100%)
Time: 144 ms, Memory: 32.50Mb
OK (54 tests, 587 assertions)


Remi.




[1] https://github.com/glpi-project/glpi/issues/644

_______________________________________________
Glpi-dev mailing list
Glpi-dev@gna.org
https://mail.gna.org/listinfo/glpi-dev

Reply via email to