test(e2e): run all specs, not only one specific
This commit is contained in:
committed by
Khaled Garbaya
parent
ed2e50c55e
commit
af9c453c52
@@ -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}`
|
||||||
|
|||||||
Reference in New Issue
Block a user