developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 13 years ago
Closed 13 years ago
#394 closed task (fixed)
Fail de 3 tests dans testapp
Reported by: | turowbye | Owned by: | laurentj |
---|---|---|---|
Priority: | normal | Milestone: | Jelix 1.0RC2 |
Component: | app:testapp | Version: | 1.0RC1 |
Severity: | minor | Keywords: | windows unit tests |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | ||
Hosting Provider: | Php version: |
Description
Il y a 3 tests qui échouent dans le testapp.
Il s'agit des tests:
- jforms: check data
- utils: jdatatype
- utils: jfilter
Je suis sous Windows.
Attachments (1)
Change History (6)
comment:1 Changed 13 years ago by turowbye
comment:2 Changed 13 years ago by laurentj
Serait-il possible d'avoir des tickets un peu plus détaillé ? Quelle configuration exactement ? IIS ? Apache ? version de php ? Et puis surtout quels sont les erreurs affichées ?
comment:3 Changed 13 years ago by turowbye
J'utilise Windows 2000
Serveur: Apache 2.2.4
- Aucun serveur virtuel
PHP : 5.2.2
- La configuration php est celle recommendée par Jelix et est testé avec check.php du testapp.
Jelix svn-715
- Le cache de l'application est effacé avant l'exécution du script
configuration de l'application
- basePath = "/jelix/testapp/www/"
Les autres valeurs sont celles par défaut lors d'une toute première exécution.
Voici les messages d'erreurs que je reçois lors de l'exécution des tests individuellement.
"jelix_tests" module , jforms: check datas
Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/jforms.check_datas.html.php -> UTjformsCheckDatas -> testInput -> True assertion got False at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\jforms.check_datas.html.php line 74]
"jelix_tests" module , utils: jdatatype
Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jdatatype.html_cli.php -> UTjdatatype -> testBoolean -> True assertion got False at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jdatatype.html_cli.php line 69] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jdatatype.html_cli.php -> UTjdatatype -> testBoolean -> True assertion got False at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jdatatype.html_cli.php line 71] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jdatatype.html_cli.php -> UTjdatatype -> testBoolean -> True assertion got False at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jdatatype.html_cli.php line 73] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jdatatype.html_cli.php -> UTjdatatype -> testBoolean -> True assertion got False at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jdatatype.html_cli.php line 75]
"jelix_tests" module , utils: jfilter
jfilter tests: use of php filter Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsHexInt -> isHexInt('-13213313') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 45] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsBool -> isBool('false') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 55] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsBool -> isBool('0') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 57] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsBool -> isBool('FALSE') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 59] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsBool -> isBool('off') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 61] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsUrl -> isUrl('foo.com') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 93] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsUrl -> isUrl('abcdfeh') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 95] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsUrl -> isUrl('bar.html?a=b&c=d') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 97] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsUrl -> isUrl('foo.com/bar.html?a=b&c=d') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 99] Fail: C:\xampp\htdocs\jelix\testapp/modules/jelix_tests/tests/utils.jfilter.html_cli.php -> UTfilter -> testIsUrl -> isUrl('foo$^.com/bar.html?a=b&c=d') at [C:\xampp\htdocs\jelix\testapp\modules\jelix_tests\tests\utils.jfilter.html_cli.php line 101]
Et je joint une images screenshot qui montre les errreurs lors de l'exécution de tous les tests.
comment:4 Changed 13 years ago by laurentj
- Component changed from jelix to app:testapp
- Keywords windows unit tests added
- Milestone set to Jelix 1.0
- Owner set to laurentj
- Status changed from new to assigned
comment:5 Changed 13 years ago by laurentj
- Resolution set to fixed
- Status changed from assigned to closed
Il s'agit en fait de bugs lorsque jelix utilise les fonctions filter de PHP : il y a des bugs dans filter, et pour d'autre cas, c'est une mauvaise correspondance entre la version pure PHP de jelix et la version filter.
Corrigé. Merci pour les précisions.
J'ai oublié de mentionner qu'il s'agit de la version svn-715