--

I don’t see why this would not work running via Cypress Module API. There is an env object in the API for a reason.

// staging-tests.jsconst cypress = require('cypress')

cypress.run({
browser: 'chrome',
env: {
tags: 'staging',
},
})

Then run via:

node staging-tests.js

With all of that said, have you tried it? Or just making an assumption?

--

--

Jonathan Thompson
Jonathan Thompson

Written by Jonathan Thompson

Writing about Golang, JavaScript, and Python with a little test automation

Responses (1)