Skip to content

A re-implementation of Cypress' configuration resolvement and search for test files

License

Notifications You must be signed in to change notification settings

Klaveness-Digital/cypress-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypress-configuration

A re-implementation of Cypress' configuration resolvement and search for test files. These mechanisms aren't exposed by Cypress, but are nonetheless necessary for EG. @klaveness/cypress-cucumber-preprocessor, @klaveness/cypress-parallel and the upcoming VSCode extention for the Cypress + Cucumber integration.

Installation

See badeball/cypress-configuration for a public, community-maintained edition and installation instructions.

Usage

import { getConfiguration } from "@klaveness/cypress-configuration";

const { fixturesFolder, integrationFolder } = getConfiguration({
  cwd: process.cwd(),
  env: process.env,
  argv: ["--config", "integrationFolder=cypress/custom-location"]
});

console.log(fixturesFolder); // => "cypress/fixtures"
console.log(integrationFolder); // => "cypress/custom-location"

About

A re-implementation of Cypress' configuration resolvement and search for test files

Resources

License

Stars

Watchers

Forks

Packages

No packages published