New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

testcafe-cli-select

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcafe-cli-select

Testcafe interactive CLI prompts to select and run specs or tests

latest
Source
npmnpm
Version
1.3.4
Version published
Maintainers
1
Created
Source

TestCafe CLI-Select

TestCafe interactive CLI prompts to select and run specific spec files / tests


Important note: the test files should include .spec.js / .spec.ts / .test.js / .test.ts suffix and be located in the tests folder (e.g. tests/login.spec.js or tests/login.test.js)

Installation

Install the following package:

npm install -D testcafe-cli-select
# within your TestCafe repository as dev dependency

How to run

Run the following command in your TestCafe repository:

npx testcafe-cli-select run

Command line arguments

You can also include more CLI arguments in which you can specify specific browser, otherwise Chrome Browser will be implicitly used

npx testcafe-cli-select run --browser firefox

Official TestCafe documentation with the list of all the supported browsers HERE.

Setting up a npm script

For convenience, you may want to store the npx command within an npm script in your project's package.json, including any desired CLI arguments:

  "scripts": {
    "tc:select": "npx testcafe-cli-select run --browser=firefox"
  }

Contributions

Feel free to open a pull request or drop any feature request or bug in the issues.

Please see more details in the contributing doc.

Keywords

cli

FAQs

Package last updated on 25 Feb 2025

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