Cypress >=v3.0.0 on GitLabCI
Current behavior:
Any version >= v3.0.0 of the Cypress is failing to run on the GitLab's CI. The following error is being thrown exactly before cypress is exiting:
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ HomePage\Home_Page_Quick_Lookup.js 00:05 1 1 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
All specs passed! 00:05 1 1 - - -
cypress:server:cypress about to exit with code 0 +159ms
_stream_readable.js:595
dest.end();
^
TypeError: dest.end is not a function
at Socket.onend (_stream_readable.js:595:10)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at Socket.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1055:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
ERROR: Job failed: exit status 1
Desired behavior:
We expect the cypress to return the (All Done) message as Cypress v2.1.0 does with no error.
Steps to reproduce:
I have an issue with running cypress on the GitLab’s CI provider. I want to confirm whether this is a configuration issue, an incompatibility issue or a cypress bug.
I have installed cypress using the yarn command yarn add cypress. This will install me the latest version of cypress, namely v3.0.2.
[path-to-root-of-solution]/cypress.json
{
"projectId": "……",
"baseUrl": "…. "
}
[path-to-root-of-solution]/cypress/integration/HomePage/Home_Page_Quick_Lookup.js
describe('Home Page Test - Find Button', function () {
before(function() {
// navigate to home page (baseUrl)
cy.visit('')
})
it('Check the button is on the page', function () {
cy.get('[data-test=button-test-base]').should('exist')
})
})
[path-to-root-of-solution]/gitlab-ci.yml
# … set path…
stages:
- test
run_test_suite:
stage: test
script:
- call yarn add cypress
- npx cypress run
# .. end of file …
When I start the cypress using the command npx cypress run
Versions
• Windows Server 2012 R2
• Node: 8.9.4
• npm: 5.6.0
• Gitlab CI Runner: 9.5.0
Comments
I have searched to see if there are other who experienced this issue, but it seems that no one have. (or at least they didn’t bother in reporting the issue and/or sharing their solution).
The https://github.com/cypress-io/cypress/issues/1841 is the only issue that is a bit relevant to this problem in the sense that the pipeline fails when cypress is about to exit.
We have tried to use other versions of cypress:
► v3.0.2, v3.0.1, v3.0.0 – the above error is being generated
► v2.1.0 – no error is being generated
Cypress >=v3.0.0 on GitLabCI
Current behavior:
Any version >= v3.0.0 of the Cypress is failing to run on the GitLab's CI. The following error is being thrown exactly before cypress is exiting:
Desired behavior:
We expect the cypress to return the
(All Done)message as Cypress v2.1.0 does with no error.Steps to reproduce:
I have an issue with running cypress on the GitLab’s CI provider. I want to confirm whether this is a configuration issue, an incompatibility issue or a cypress bug.
I have installed cypress using the yarn command
yarn add cypress. This will install me the latest version of cypress, namely v3.0.2.[path-to-root-of-solution]/cypress.json
[path-to-root-of-solution]/cypress/integration/HomePage/Home_Page_Quick_Lookup.js
[path-to-root-of-solution]/gitlab-ci.yml
When I start the cypress using the command npx cypress run
Versions
• Windows Server 2012 R2
• Node: 8.9.4
• npm: 5.6.0
• Gitlab CI Runner: 9.5.0
Comments
I have searched to see if there are other who experienced this issue, but it seems that no one have. (or at least they didn’t bother in reporting the issue and/or sharing their solution).
The
https://github.com/cypress-io/cypress/issues/1841is the only issue that is a bit relevant to this problem in the sense that the pipeline fails when cypress is about to exit.We have tried to use other versions of cypress:
► v3.0.2, v3.0.1, v3.0.0 – the above error is being generated
► v2.1.0 – no error is being generated