Le Thu, 12 May 2016 07:24:12 +0200 Remi Collet <fed...@famillecollet.com> a écrit:
>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). Thanks to him \o/ >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) In FusionInventory test suite, I backup the first install of GLPI + FusionInventory and reload it for each test, it's not the best because used many times / resources but works well ( 4 minutes 48 seconds for Tests: 80, Assertions: 383) >- 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 + PHP Code Checker? (for testing coding rules) >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 _______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev