-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2 types de tests: unitaire: tester une classe seule sans dépendance = github workflow phpunit.yml intégration: tester jeedom en fonctionnement, utilise docker pour démarrer la bdd et le container jeedom = github workflow docker-test.yml
- Loading branch information
Showing
67 changed files
with
2,016 additions
and
1,774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.git | ||
/vendor | ||
/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# tests unitaires exécutés directement dans le contexte courant | ||
# Aucune bdd, Jeedom non démarré | ||
name: Standalone PHPUnit | ||
|
||
on: | ||
push: | ||
# only trigger CI when push on following branches | ||
branches: | ||
- feat/run_phpunit | ||
- alpha | ||
pull_request: | ||
branches: | ||
- alpha | ||
|
||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# checkout repo | ||
# https://github.com/marketplace/actions/checkout | ||
- uses: actions/checkout@v4 | ||
# composer installation | ||
# https://github.com/marketplace/actions/composer-php-actions | ||
- name: composer installation | ||
uses: php-actions/composer@v6 | ||
# trigger phpunit using custom xml configuration | ||
# https://github.com/marketplace/actions/phpunit-php-actions | ||
- name: run standalone phpunit | ||
uses: php-actions/phpunit@v4 | ||
with: | ||
php_version: 7.4 | ||
testsuite: unit | ||
php_extensions: xdebug pdo_mysql | ||
coverage_clover: coverage/clover.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ tmp/* | |
|
||
!.htaccess | ||
.env | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"version":1,"defects":{"cacheTest::testSave":4,"cacheTest::testLoad":1,"cacheTest::testRemove":1,"cacheTest::testDefault":1,"cacheTest::testTime":1,"configTest::testSave":4,"configTest::testLoad":1,"configTest::testRemove":1,"configTest::testDefault":1,"cronTest::testCreate":4,"cronTest::testCreateWithOption":4,"logTest::testLoggerHandler with data set #0":4,"logTest::testLoggerHandler with data set #1":4,"logTest::testAddGetRemove with data set #0":4,"logTest::testAddLevels with data set #0":4,"logTest::testAddLevels with data set #1":4,"logTest::testAddLevels with data set #2":4,"logTest::testAddLevels with data set #3":4,"logTest::testAddLevels with data set #4":4,"logTest::testListe with data set #0":4,"Error":4,"pluginTest::testInstall with data set #0":4,"pluginTest::testCreateEqVirtual":1,"pluginTest::testCreateCmdVirtualBinary":1,"pluginTest::testCreateCmdVirtualNumeric":1,"pluginTest::testCmdVirtualNumeric":1,"pluginTest::testCreateCmdVirtualString":1,"pluginTest::testCmdVirtualString":1,"pluginTest::testCreateCmdVirtualActionOther":1,"pluginTest::testCmdVirtualActionOther":1,"pluginTest::testCreateCmdVirtualActionNumeric":1,"pluginTest::testCmdVirtualActionNumeric":1,"pluginTest::testCreateCmdVirtualActionColor":1,"pluginTest::testCmdVirtualActionColor":1,"pluginTest::testRemove":1,"scenarioExpressionTest::testCalculCondition":4,"scenarioExpressionTest::testVariable":4,"scenarioExpressionTest::testStringCondition":1,"scenarioTest::testGetterSetter with data set #2":4,"scenarioTest::testGetterSetter with data set #5":4,"scenarioTest::testGetterSetter with data set #10":4,"scenarioTest::testGetterSetter with data set #24":3,"userTest::testCreate":4,"userTest::testConnect":1,"userTest::testRemove":1},"times":{"ajaxTest::testSuccess with data set #0":0.107,"ajaxTest::testError with data set #0":0,"cacheTest::testSave":0.051,"cacheTest::testLoad":0,"cacheTest::testRemove":0,"cacheTest::testDefault":0,"cacheTest::testTime":0,"configTest::testSave":0.036,"configTest::testLoad":0,"configTest::testRemove":0,"configTest::testDefault":0,"cronTest::testCreate":0.032,"cronTest::testCreateWithOption":0,"logTest::testLoggerHandler with data set #0":0,"logTest::testLoggerHandler with data set #1":0,"logTest::testAddGetRemove with data set #0":0,"logTest::testAddLevels with data set #0":0,"logTest::testAddLevels with data set #1":0,"logTest::testAddLevels with data set #2":0,"logTest::testAddLevels with data set #3":0,"logTest::testAddLevels with data set #4":0,"logTest::testListe with data set #0":0,"Error":0.008,"pluginTest::testInstall with data set #0":0,"pluginTest::testCreateEqVirtual":0,"pluginTest::testCreateCmdVirtualBinary":0,"pluginTest::testCreateCmdVirtualNumeric":0,"pluginTest::testCmdVirtualNumeric":0,"pluginTest::testCreateCmdVirtualString":0,"pluginTest::testCmdVirtualString":0,"pluginTest::testCreateCmdVirtualActionOther":0,"pluginTest::testCmdVirtualActionOther":0,"pluginTest::testCreateCmdVirtualActionNumeric":0,"pluginTest::testCmdVirtualActionNumeric":0,"pluginTest::testCreateCmdVirtualActionColor":0,"pluginTest::testCmdVirtualActionColor":0,"pluginTest::testRemove":0,"scenarioExpressionTest::testCalculCondition":0.099,"scenarioExpressionTest::testVariable":0,"scenarioExpressionTest::testStringCondition":0,"scenarioTest::testGetterSetter with data set #0":0.182,"scenarioTest::testGetterSetter with data set #1":0,"scenarioTest::testGetterSetter with data set #2":0.121,"scenarioTest::testGetterSetter with data set #3":0,"scenarioTest::testGetterSetter with data set #4":0,"scenarioTest::testGetterSetter with data set #5":0,"scenarioTest::testGetterSetter with data set #6":0,"scenarioTest::testGetterSetter with data set #7":0,"scenarioTest::testGetterSetter with data set #8":0,"scenarioTest::testGetterSetter with data set #9":0,"scenarioTest::testGetterSetter with data set #10":0.001,"scenarioTest::testGetterSetter with data set #11":0,"scenarioTest::testGetterSetter with data set #12":0,"scenarioTest::testGetterSetter with data set #13":0,"scenarioTest::testGetterSetter with data set #14":0.034,"scenarioTest::testGetterSetter with data set #15":0,"scenarioTest::testGetterSetter with data set #16":0,"scenarioTest::testGetterSetter with data set #17":0,"scenarioTest::testGetterSetter with data set #18":0,"scenarioTest::testGetterSetter with data set #19":0,"scenarioTest::testGetterSetter with data set #20":0,"scenarioTest::testGetterSetter with data set #21":0,"scenarioTest::testGetterSetter with data set #22":0,"scenarioTest::testGetterSetter with data set #23":0,"scenarioTest::testGetterSetter with data set #24":0,"scenarioTest::testGetterSetter with data set #25":0,"scenarioTest::testGetterSetter with data set #26":0,"scenarioTest::testGetterSetter with data set #27":0,"scenarioTest::testGetterSetter with data set #28":0,"scenarioTest::testGetterSetter with data set #29":0,"scenarioTest::testPersistLog":0.063,"shellTest::testGetCmd":0,"shellTest::testCommandExist":0.018,"shellTest::testBackground with data set #0":0,"shellTest::testBackground with data set #1":0,"shellTest::testExec":0.03,"shellTest::testInstance":0.016,"shellTest::testExecute":0.014,"shellTest::testCache":0.002,"shellTest::testHistory":0.005,"userTest::testCreate":0.013,"userTest::testConnect":0,"userTest::testRemove":0,"utilsTest::testTemplace_replace with data set #0":0,"utilsTest::testTemplace_replace with data set #1":0,"utilsTest::testInit":0,"utilsTest::testConvertDuartion with data set #0":0,"utilsTest::testConvertDuartion with data set #1":0,"utilsTest::testConvertDuartion with data set #2":0,"utilsTest::testConvertDuartion with data set #3":0,"utilsTest::testConvertDuartion with data set #4":0,"utilsTest::testConvertDuartion with data set #5":0,"utilsTest::testConvertDuartion with data set #6":0,"utilsTest::testConvertDuartion with data set #7":0,"utilsTest::testIs_json with data set #0":0,"utilsTest::testIs_json with data set #1":0,"utilsTest::testIs_json with data set #2":0,"utilsTest::testIs_json with data set #3":0,"utilsTest::testCleanPath with data set #0":0}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.