0
我很難讓測試在CircleCI內運行。本地測試運行良好,如截圖右側所示。但是在CircleCI中,它將加載SuiteContext文件並運行Before/AfterSuite方法,但沒有別的。什麼會導致這種行爲?由於Behat測試未在CircleCI上運行
default:
autoload: Test/Context
suites:
default:
paths:
features: Test/Features
contexts:
- SettingContext: ~
- LanguageContext: ~
- ActionContext: ~
- FrontendContext: ~
- FileTypeContext: ~
- FieldContext: ~
- ChannelContext: ~
- BrowserContext: ~
- SuiteContext: ~
- RequestContext: ~
- UrlContext: ~
- TemplateContext: ~
- PhraseContext: ~
- CategoryContext: ~
- EntryContext: ~
extensions:
Behat\MinkExtension:
base_url: http://ee300-clean.dev
selenium2: ~
路徑在圓形實例文件:
/home
/ubuntu
/project
/app
/bin
/behat
/behat.yml
/Test
/Context
/Features
circle.yml
test:
override:
- cd /home/ubuntu/project/app && bin/behat
我已經改變了覆蓋命令多次明確設置特徵目錄的路徑,但沒有我嘗試過的作品。
你可以發佈你的behat.yml文件嗎? – gvf
同意,很高興看到關於配置和你正在運行的測試的更多細節。 – appplemac
用文件更新了OP。 –