douhei8633 2016-06-04 03:05
浏览 64

在2.2中删除了Codeception`build -c`选项?

I get an alert. Tests are failing. And not just on my last commit... But on every branch. So something must be wrong with the automated testing. Right?

And here's the message:

Failing command: php /var/www/codecept.phar build -c /var/www/protected/tests/ 
Exit code: 1 
Output:                                                      
  [Symfony\Component\Console\Exception\RuntimeException]  
  The "-c" option does not exist.                         

OK. But it works locally... Hmm... Let's check if I'm running the same version.

I'm not:

$ codecept -v
Codeception version 2.1.9
$ wget http://codeception.com/codecept.phar
$ php ./codecept.phar -v
Codeception version 2.2.1

So I'm running 2.1.9. And my tests pass. Test continuous environment is getting the latest version 2.2.1. And it fails.

Let's check out the help for 2.1.9:

$ codecept help build
Usage:
  build [options]

Options:
  -c, --config[=CONFIG]  Use custom path for config
  -h, --help             Display this help message
  -q, --quiet            Do not output any message
<snip>

There's the option. -c, --config.

And now let's look at 2.2.1:

$ php ./codecept.phar help build
Usage:
  build

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
<snip>

Hey! There is no longer a -c option.

What can I do to point codecept at the config directory?

  • 写回答

1条回答 默认 最新

  • douzoudang1511 2016-06-04 20:55
    关注

    https://github.com/Codeception/Codeception/issues/3173
    Something is wrong with phar files of 2.2.1 version, I can only recommend to use Codeception installed with composer until that issue is fixed.

    评论

报告相同问题?

悬赏问题

  • ¥15 昨天挂载了一下u盘,然后拔了
  • ¥30 win from 窗口最大最小化,控件放大缩小,闪烁问题
  • ¥20 易康econgnition精度验证
  • ¥15 msix packaging tool打包问题
  • ¥28 微信小程序开发页面布局没问题,真机调试的时候页面布局就乱了
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接