test(e2e): run all specs, not only one specific

This commit is contained in:
Benedikt Rötsch
2017-12-12 14:38:09 +01:00
committed by Khaled Garbaya
parent ed2e50c55e
commit af9c453c52

View File

@@ -17,11 +17,8 @@ const { CONTENTFUL_SPACE_ID, CONTENTFUL_DELIVERY_TOKEN, CONTENTFUL_PREVIEW_TOKEN
server.on('error', console.error)
server.listen(TEST_PORT, function () {
const cypressBin = resolve(__dirname, 'e2e', 'node_modules', '.bin', 'cypress')
const spec = resolve(__dirname, 'e2e', 'specs', 'the-example-app-spec.js')
execa(cypressBin, [
'run',
'--spec',
spec,
!process.env.CI ? '--headed' : null,
'--env',
`CONTENTFUL_SPACE_ID=${CONTENTFUL_SPACE_ID},CONTENTFUL_DELIVERY_TOKEN=${CONTENTFUL_DELIVERY_TOKEN},CONTENTFUL_PREVIEW_TOKEN=${CONTENTFUL_PREVIEW_TOKEN}`