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
parent d1b1d507bc
commit e9e15b0bc2

View File

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