This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Add support for Nette\Tester | ||
---|---|---|---|
Product: | php | Reporter: | Ondrej Brejla <obrejla> |
Component: | Code | Assignee: | Tomas Mysik <tmysik> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mmolda, vriha |
Priority: | P2 | ||
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
Ondrej Brejla
2013-04-18 08:04:32 UTC
We need a "porcelain" format of the output - could you submit an issue against Nette Tester please? Thanks. The nette/tester would need to be improved a bit - reported as [1]. Thanks. [1] https://github.com/nette/tester/issues/39 Done, will be available after NB 7.4. Thanks. Guys, please verify that the support works on Windows. Thanks. Tomasi, I spent some time testing it and I have found the problem. By default, Tester is running PHP without config (php.ini), so after running tests in Netbeans I get this output: "C:\xampp\php\php.exe" "D:\frameworks\NetteFramework-2.0.12-PHP5.3\tools\Tester\Tester\tester" "--tap" "-s" "C:\xampp\htdocs\PhpProject187\tests\ExampleTest.phpt" TAP version 13 not ok PhpProject187\tests\ExampleTest.phpt # Exited with error code 255 (expected 0) # # Fatal error: Call to undefined function Nette\Utils\mb_convert_encoding() in C:\xampp\htdocs\PhpProject187\libs\Nette\nette\Nette\Utils\Strings.php on line 61 1..1 Done. So Tester does not see extension php_mbstring.dll which is configured in php.ini. I have to add manually path to config with parameter -c [1]. Then when I tried same command in command line but with -c parameter it is working. C:\>"C:\xampp\php\php.exe" "D:\frameworks\NetteFramework-2.0.12-PHP5.3\tools\Tester\Tester\tester" "--tap" "-s" "C:\xampp\htdocs\PhpProject187\tests\ExampleTest.phpt" "-c" "C:\xampp\php\php.ini" TAP version 13 ok PhpProject187\tests\ExampleTest.phpt 1..1 Could you please look at it (and add -c parameter to locate php.ini)? Then I will be able to test it again in NetBeans. Thanks [1] https://github.com/nette/tester#running-tests Reported as issue #236627. Milane, please, do not forget to verify this issue (especially on Windows). Thanks. Verified, NetBeans support for Nette/Tester is working good. I have found issue in Nette/Tester and reported it [1]. Thanks. [1] https://github.com/nette/tester/issues/54 I just added a few improvements based on the latest Atoum changes - could you please quickly retest it? Thanks a lot. http://hg.netbeans.org/web-main/rev/b0aa5190fbaa One more minor fix. Thanks. http://hg.netbeans.org/web-main/rev/3cdec60a63e5 Working as expected. Thank you. Product Version: NetBeans IDE Dev (Build 201310170001) Java: 1.7.0_45; Java HotSpot(TM) Client VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb) |