benim test dizininde alt klasörleri tüm testleri çalıştırmak için çalışıyorum. Bu benim bilgisayarda değil entegrasyon sunucu üzerinde yerel olarak çalışmaktadır.
phpunit does not find the test files
hudson@slipstream:~/.hudson/jobs/stendhal_website/workspace$ phpunit tests
PHPUnit 3.4.5 by Sebastian Bergmann.
Time: 0 seconds, Memory: 4.50Mb
OK (0 tests, 0 assertions)
The test file, however, does exist and is readable:
hudson@slipstream:~/.hudson/jobs/stendhal_website/workspace$ find tests -name \*Test.php
tests/scripts/pharauroa/common/net/deserializerTest.php
hudson@slipstream:~/.hudson/jobs/stendhal_website/workspace$ ls -l tests/scripts/pharauroa/common/net/deserializerTest.php
-rw-r--r-- 1 hudson hudson 6957 Jul 17 12:54 tests/scripts/pharauroa/common/net/deserializerTest.php
I can start it by explicitly specifying it on the command line of phpunit:
hudson@slipstream:~/.hudson/jobs/stendhal_website/workspace$ phpunit tests/scripts/pharauroa/common/net/deserializerTest.php
PHPUnit 3.4.5 by Sebastian Bergmann.
.....
Time: 0 seconds, Memory: 5.00Mb
OK (5 tests, 32 assertions)
What I tried so far:
Strace'i kullanarak, o phpunit ardışık testler dizini tarar ve hatta deserializerTest.php dosyayı istatistikleri görebilirsiniz. Ama açılmıyor
"Phpunit testler" benim yerel bilgisayarda çalışıyor. Her iki bilgisayar Ubuntu muhtelemelen Lucid 10,04 ve phpunit 3.4.5 yayınlanıyor. Sunucu bir chroot içinde çalışıyor.
Ben kullanmaya çalıştım
phpunit `find tests -name \*.php`
ancak phpunit sadece ilk parametre önem veriyor.
Ben suite sınıflar yazmak mümkün olduğunu biliyorum ama bu bir bakım kabus gibi görünüyor. Ben belirgin bir şey eksik gibi hissediyor.