-
Notifications
You must be signed in to change notification settings - Fork 3.3k
fix: ensure debugging your ci failures message displays #31563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
5580494
e6d13ef
a7cabdd
c45e44c
ac4827e
54f38f7
faf855f
7896efd
60acb87
fd5163e
62f200b
d714e72
3d92514
0051d5f
0eb2ade
fe8f8aa
3108936
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Bump this version to force CI to re-create the cache from scratch. | ||
|
||
4-17-2025-v1 | ||
4-22-2025 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# @cypress/vue2 | ||
|
||
Mount Vue 2 components in the open source [Cypress.io](https://www.cypress.io/) test runner | ||
|
||
> **Note:** This package is bundled with the `cypress` package and should not need to be installed separately. See the [Vue Component Testing Docs](https://docs.cypress.io/guides/component-testing/vue/overview) for mounting Vue components. Installing and importing `mount` from `@cypress/vue2` should only be done for advanced use-cases. | ||
|
||
## [Changelog](./CHANGELOG.md) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "@cypress/vue2", | ||
"version": "0.0.0-development", | ||
"description": "Browser-based Component Testing for Vue.js@2 with Cypress.io ✌️🌲", | ||
"main": "dist/cypress-vue2.cjs.js", | ||
"scripts": { | ||
"build": "rimraf dist && yarn rollup -c rollup.config.mjs", | ||
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js", | ||
"build-prod": "yarn build", | ||
"lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .", | ||
"test": "echo \"Tests for @cypress/vue2 are run from system-tests\"", | ||
"test-ci": "node ../../scripts/run-ct-examples.js --examplesList=./examples.env", | ||
"typecheck": "tsc --noEmit", | ||
"watch": "yarn build --watch --watch.exclude ./dist/**/*" | ||
}, | ||
"devDependencies": { | ||
"@cypress/mount-utils": "0.0.0-development", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-replace": "^2.3.1", | ||
"@vue/test-utils": "^1.3.1", | ||
"tslib": "^2.1.0", | ||
"typescript": "^4.7.4", | ||
"vue": "2.6.12" | ||
}, | ||
"peerDependencies": { | ||
"cypress": ">=4.5.0", | ||
"vue": "^2.0.0" | ||
}, | ||
"files": [ | ||
"dist/**/*", | ||
"src/**/*.js" | ||
], | ||
"engines": { | ||
"node": ">=8" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/cypress-io/cypress.git" | ||
}, | ||
"homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/vue/#readme", | ||
"bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fvue&template=1-bug-report.md&title=", | ||
"keywords": [ | ||
"cypress", | ||
"vue" | ||
], | ||
"unpkg": "dist/cypress-vue2.browser.js", | ||
"module": "dist/cypress-vue2.esm-bundler.js", | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
exports['CI failure fails and displays the message that points users to the cloud 1'] = ` | ||
==================================================================================================== | ||
(Run Starting) | ||
┌────────────────────────────────────────────────────────────────────────────────────────────────┐ | ||
│ Cypress: 1.2.3 │ | ||
│ Browser: FooBrowser 88 │ | ||
│ Specs: 1 found (simple_failing.cy.js) │ | ||
│ Searched: cypress/e2e/simple_failing.cy.js │ | ||
└────────────────────────────────────────────────────────────────────────────────────────────────┘ | ||
──────────────────────────────────────────────────────────────────────────────────────────────────── | ||
|
||
Running: simple_failing.cy.js (1 of 1) | ||
simple failing spec | ||
1) fails1 | ||
2) fails2 | ||
0 passing | ||
2 failing | ||
1) simple failing spec | ||
fails1: | ||
AssertionError: Timed out retrying after 100ms: expected true to be false | ||
[stack trace lines] | ||
2) simple failing spec | ||
fails2: | ||
Error: fails2 | ||
[stack trace lines] | ||
(Results) | ||
┌────────────────────────────────────────────────────────────────────────────────────────────────┐ | ||
│ Tests: 2 │ | ||
│ Passing: 0 │ | ||
│ Failing: 2 │ | ||
│ Pending: 0 │ | ||
│ Skipped: 0 │ | ||
│ Screenshots: 0 │ | ||
│ Video: false │ | ||
│ Duration: X seconds │ | ||
│ Spec Ran: simple_failing.cy.js │ | ||
└────────────────────────────────────────────────────────────────────────────────────────────────┘ | ||
==================================================================================================== | ||
(Run Finished) | ||
Spec Tests Passing Failing Pending Skipped | ||
┌────────────────────────────────────────────────────────────────────────────────────────────────┐ | ||
│ ✖ simple_failing.cy.js XX:XX 2 - 2 - - │ | ||
└────────────────────────────────────────────────────────────────────────────────────────────────┘ | ||
✖ 1 of 1 failed (100%) XX:XX 2 - 2 - - | ||
---------------------------------------------------------------------------------------------------- | ||
Debug faster with full visibility. | ||
Record to Cypress Cloud and get instant access to full test details and replays. | ||
Inspect the DOM, network events, and console logs exactly as they ran in CI. | ||
>> https://on.cypress.io/cloud-get-started | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ryanthemanuel This snapshot doesn't have the line spacing I would expect here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are the newlines stripped out of the snapshot? I don't remember that being the case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's passing for me locally? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmmm. Something is fishy. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that should fix it. My guess is my IDE auto formatted something. Weird that it was passing for me locally though... |
||
---------------------------------------------------------------------------------------------------- | ||
` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import systemTests from '../lib/system-tests' | ||
|
||
describe('CI failure', () => { | ||
systemTests.setup() | ||
|
||
it('fails and displays the message that points users to the cloud', function () { | ||
return systemTests.exec(this, { | ||
browser: 'electron', | ||
spec: 'simple_failing.cy.js', | ||
processEnv: { | ||
CI: '1', | ||
CYPRESS_COMMERCIAL_RECOMMENDATIONS: '1', | ||
}, | ||
expectedExitCode: 2, | ||
snapshot: true, | ||
config: { | ||
screenshotOnRunFailure: false, | ||
}, | ||
}) | ||
}) | ||
}) |
Uh oh!
There was an error while loading. Please reload this page.