用phpunit运行蚂蚁崩溃

时间:2016-08-03 01:05:13

标签: laravel ant phpunit lumen

我正在尝试一起使用ant和phpunit但是我收到一个错误,phpunit崩溃但构建成功。这是一个流明框架

MacBook-Pro:test-api test$ ant phpunit
Buildfile: /Users/test/Code/test-api/build.xml

phpunit:
     [exec]
     [exec] Running phpunit in 4 processes with /Users/test/Code/test-api/vendor/bin/phpunit
     [exec]
     [exec] Configuration read from /Users/test/Code/test-api/phpunit.xml
     [exec]
     [exec]
     [exec]
     [exec]   [RuntimeException]
     [exec]   Coverage file /private/var/folders/jp/qjjd9lr50z74kbj_gwcc3bsr0000gn/T/CV_LaTe66 is empty. This means a PHPUnit process has crashed.
     [exec]
     [exec]
     [exec] paratest [-p|--processes PROCESSES] [-f|--functional] [--no-test-tokens] [-h|--help] [--coverage-clover COVERAGE-CLOVER] [--coverage-html COVERAGE-HTML] [--coverage-php COVERAGE-PHP] [-m|--max-batch-size MAX-BATCH-SIZE] [--filter FILTER] [--whitelist WHITELIST] [--phpunit PHPUNIT] [--runner RUNNER] [--bootstrap BOOTSTRAP] [-c|--configuration CONFIGURATION] [-g|--group GROUP] [--exclude-group EXCLUDE-GROUP] [--stop-on-failure] [--log-junit LOG-JUNIT] [--colors] [--testsuite [TESTSUITE]] [--path PATH] [--] [<path>]
     [exec]
     [exec] Result: 1

BUILD SUCCESSFUL
Total time: 1 second

1 个答案:

答案 0 :(得分:0)

实际上,我们可以在没有 new Vue({ el: '#calculator', data: { asking_price: 60000, }, computed: { loan_amount: function(){ return this.asking_price - this.downpayment; }, down_payment : function(){ return this.asking_price - this.loan_amount; }, } }); ant的情况下执行此操作。

我们只需要运行phpunitphpunit --coverage-text