1
基本的にはget started
セクションのhttp://codecept.io/ページに記載されているようにすべてを行いました。 package.jsonからナイトメアのCodeceptjsはテスト結果を出力しません
devDependencies:
"codeceptjs": "^0.5.1",
"nightmare": "^2.10.0",
"nightmare-upload": "^0.1.1"
codecept.json:
{
"tests": "./tests/acceptance/*_test.js",
"timeout": 10000,
"output": "./output",
"helpers": {
"Nightmare": {
"url": "http://localhost:8080",
"show": false,
"restart": false
}
},
"include": {},
"bootstrap": false,
"mocha": {},
"name": "vagrant"
}
テスト自体はチュートリアルからもです:
Feature('My first test');
Scenario('test something', (I) => {
I.amOnPage('http://yahoo.com');
I.fillField('p', 'github nightmare');
I.click('Search Web');
I.waitForElement('#main');
I.seeElement('#main .searchCenterMiddle li a');
I.seeElement("//a[contains(@href,'github.com/segmentio/nightmare')]");
I.see('segmentio/nightmare','#main li a');
});
私はcodeceptjs run --steps
を実行すると、私が得ますコンソールの出力: screenshot
テストは合格か失敗かは関係ありませんが、出力は常に同じです。
私は何が間違っているのか、誰にどのように修正するのかを知っていますか?