dpy15285 2017-02-24 21:43
浏览 31

在Moodle中无法修复“如果启用了测试模式则只能运行”

After I run

php admin/tool/behat/cli/util.php --enable 

I see this message:

Acceptance tests environment enabled on http://127.0.0.1, to run the test use: 
vendor/bin/behat --config /var/www/education/moodle/admin/tool/behat/cli/tests/behat/behat/behat.yml

Then I run my behat feature file:

vendor/bin/behat --config /var/www/education/moodle/admin/tool/behat/cli/tests/behat/behat/behat.yml local/intelliboard/tests/behat/student_dashboard.feature

Its message to me:

Behat only can run if test mode is enabled. More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests

I read that doc a lot, there is no any info to solve my issue, because I did util.php --enable and even check a behat.yml and found my student_dashboard.feature test and context variable and related for it .php filename with test steps.

I even install NodeJS Gherkin validator and check my feature for errors - its clean.

  • 写回答

1条回答 默认 最新

  • drcb19700 2018-01-10 12:56
    关注

    Make sure you have those two configuration entries, behat_dataroot_parent must be added to your configuration file and set to the same value as behat_root

    $CFG->behat_dataroot_parent = '/var/www/bht_moodledata/';
    $CFG->behat_dataroot = '/var/www/bht_moodledata';
    
    评论

报告相同问题?

悬赏问题

  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 linux驱动,linux应用,多线程