[英]Laravel unit tests not running on windows
I was trying to do unit testing with laravel framework. 我正在尝试使用laravel框架进行单元测试。
I followed all the steps described in laravel documentation but it doesn't work when I do "phpunit" command. 我遵循了laravel文档中描述的所有步骤,但是当我执行“ phpunit”命令时它不起作用。
Tried the same command on a linux machine, it ran perfectly.... 在Linux机器上尝试了相同的命令,它运行得非常完美。
Desktop\space-bubble\phpunit.xml
Time: 0 seconds, Memory: 6.00Mb
No tests executed! 没有执行测试!
Use the phpunit provided in the project's vendor folder. 使用项目的vendor文件夹中提供的phpunit。
Using an unix shell 使用Unix外壳
~/Desktop/space-bubble
$ ./vendor/bin/phpunit
Using windows cmd 使用Windows cmd
C:\Users\[your-username]> cd Desktop\space-bubble
C:\Users\[your-username]\Desktop\space-bubble> vendor\bin\phpunit
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.