Comments (9)
Which version of Cypress are you using? Which version of cypress-terminal-report?
I am running docker.io/cypress/browsers:node-16.18.1-chrome-110.0.5481.96-1-ff-109.0-edge-110.0.1587.41-1
with cypress-terminal-report@^4.1.3
and have:
// cypress/support/e2e.ts
...
installLogsCollector({
enableExtendedCollector: true,
xhr: { printRequestData: true, printHeaderData: true },
});
...
// cypress.config.ts
export default defineConfig({
e2e: {
...
setupNodeEvents(on, config) {
installLogsPrinter(on);
...
// the test file
...
describe("account", () => {
before(() => {
console.log("TEST TEST TEST");
});
...
But I do not see the TEST TEST TEST
output.
from cypress-terminal-report.
I think we might be facing #67. console.log
output is not supported by cypress-terminal-report.
from cypress-terminal-report.
Cypress Version: 12.16.0
CTR version: 5.3.0
Currently no console/network tab output is displayed on failure while running headless, it's as if CTR doesn't exist. But, afaik it's set up properly. For example, here's some output with failures while running headless:
✓ updates listed results to accomodate several filters (1796ms)
1) further refines a filter by adding a subcategory
2) only displays one result for strictly filtered content
3) can remove an overarching filter category, which also removes refinements to the same category
✓ does not display irrelevant results in rule system search (5587ms)
These numbered failures usually provide verbose messaging.
from cypress-terminal-report.
To me what happens is that when updating to version 5.3.0 I start getting the following message when I have @ignored tests:
If I downgrade to 5.2.0 it works.
I simply place a @Focus tag in a test inside a feature file to ignore the others, and then I get that error.
<failure message="utils2.nonQueueTask is not a function
Because this error occurred during a `after each` hook we are skipping all of the remaining tests." type="TypeError"><![CDATA[TypeError: utils2.nonQueueTask is not a function
Because this error occurred during a `after each` hook we are skipping all of the remaining tests.
at LogCollectSimpleControl.sendLogsToPrinter
</failure>
from cypress-terminal-report.
Release a fix for this in 5.3.1 Please verify and report back.
from cypress-terminal-report.
Thanks @archfz for addressing, however after upgrading to 5.3.1, all Cypress tests fail outright with
> Cannot assign to read only property 'exports' of object '#<Object>'
This failure happens before tests start, fully blocking runs
from cypress-terminal-report.
An ESM import was left in the code. Check with 5.3.2
from cypress-terminal-report.
It looks like I'm now getting verbose reporting!
However, not all failed tests are providing verbose reporting. For example, in one test series I have one test fail without verbose reporting, and another fail that does provide it right after:
✓ can apply the search term after the filter has been applied (1319ms)
✓ can search for a system as a subcategory (12027ms)
✓ applies the system subcategory filter (1606ms)
✓ updates listed results to accomodate several filters (1772ms)
1) further refines a filter by adding a subcategory //no CTR output here?
2) only displays one result for strictly filtered content
cy:command ✔ get [data-cy="addFacet-Format"]
cy:command ✔ scrollIntoView
cy:command ✔ get [data-cy="addFacet-Format"]
cy:command ✘ assert expected **<table.filter-block>** to be **visible**
I'm not sure why some are printing while others aren't, but overall I can confirm cypress-terminal-report is printing output in headless.
Should I open a new ticket for this leftover issue?
from cypress-terminal-report.
Closing this. Please open new issue and try to add a reproducible example / fork of demo.
from cypress-terminal-report.
Related Issues (20)
- Log spec code runtime errors HOT 5
- v5.3.5 error when running, 'import' and 'export' may only appear with sourceType: module HOT 2
- Commands from subsequent test retries are not logged to console HOT 1
- Integration with cypress-io/github-action@v6 HOT 2
- Vulnerability - semver - Regular Expression Denial of Service (ReDoS) HOT 2
- Doesn't work with Component tests HOT 3
- unconditional "debugger" statement is pausing execution for all tests that use LogCollectCypressFetch HOT 1
- How to filter `Verbose level` HOT 2
- Getting error in component testing HOT 3
- cy.api request as cy:request logs and not cy:command HOT 1
- Bug: Cypress Component testing on React logs console logs recursively HOT 1
- Integration with cypress-mochawesome-reporter HOT 1
- Does not seem to work with cypress-parallel-tests HOT 2
- Console errors are not retrieved during Hooks v6.0.0 HOT 2
- enableExtendedCollector prevents usage of Cypress on fail event HOT 2
- Is it possible to turn off the after each hook log? HOT 2
- enableExtendedCollector fails when commandTimings is also set to 'seconds' HOT 1
- printLogsToConsole: 'never' not respected by enableExtendedCollector: true when includeSuccessfulHookLogs is also true HOT 1
- logging to file doesn't include logs from all attempts HOT 2
- Hide secret while reporting HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-terminal-report.