Code Monkey home page Code Monkey logo

Comments (9)

devurandom avatar devurandom commented on June 12, 2024

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.

devurandom avatar devurandom commented on June 12, 2024

I think we might be facing #67. console.log output is not supported by cypress-terminal-report.

from cypress-terminal-report.

SketchParker avatar SketchParker commented on June 12, 2024

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.

casalribeiro avatar casalribeiro commented on June 12, 2024

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.

archfz avatar archfz commented on June 12, 2024

Release a fix for this in 5.3.1 Please verify and report back.

from cypress-terminal-report.

SketchParker avatar SketchParker commented on June 12, 2024

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.

archfz avatar archfz commented on June 12, 2024

An ESM import was left in the code. Check with 5.3.2

from cypress-terminal-report.

SketchParker avatar SketchParker commented on June 12, 2024

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.

archfz avatar archfz commented on June 12, 2024

Closing this. Please open new issue and try to add a reproducible example / fork of demo.

from cypress-terminal-report.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.