Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cypress-terminal-report

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-terminal-report

Better terminal and file output for cypress test logs.

  • 7.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
503K
increased by8.7%
Maintainers
1
Weekly downloads
 
Created

What is cypress-terminal-report?

The cypress-terminal-report npm package is designed to enhance the logging capabilities of Cypress tests. It provides detailed logs of Cypress commands, network requests, and other events directly in the terminal, making it easier to debug and understand test execution.

What are cypress-terminal-report's main functionalities?

Logging Cypress Commands

This feature allows you to log all Cypress commands executed during a test run. By installing the logs printer, you can see detailed logs of each command in the terminal, which helps in debugging and understanding the flow of your tests.

const installLogsPrinter = require('cypress-terminal-report/src/installLogsPrinter');
installLogsPrinter();

Logging Network Requests

This feature logs all network requests made during the test run. By configuring the logs printer to always print logs, you can capture and view all network interactions, which is useful for debugging API calls and network-related issues.

const installLogsPrinter = require('cypress-terminal-report/src/installLogsPrinter');
installLogsPrinter({ printLogs: 'always' });

Custom Log Filtering

This feature allows you to filter logs based on custom criteria. By providing a filter function, you can control which logs are displayed in the terminal, making it easier to focus on specific types of logs, such as errors.

const installLogsPrinter = require('cypress-terminal-report/src/installLogsPrinter');
installLogsPrinter({ filterLog: (log) => log.message.includes('error') });

Other packages similar to cypress-terminal-report

Keywords

FAQs

Package last updated on 28 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc