question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Config settings is not overwritten when use cli command

See original GitHub issue

Current behavior

Config settings is not overwritten when use cli command. npx cypress run --config videosFolder='vids',screenshotsFolder='pics'

(Screenshots)

  • C:\foo\cypress\screenshots\foo.cy.ts\bar (failed).png (1280x720)

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: C:\foo\cypress\videos\foo.cy.ts.mp4 (2 seconds)

Desired behavior

Used folders should be vids and pics instead.

(Screenshots)

  • C:\foo\cypress\pics\foo.cy.ts\bar (failed).png (1280x720)

(Video)

  • Started processing: Compressing to 32 CRF
  • Finished processing: C:\foo\cypress\vids\foo.cy.ts.mp4 (2 seconds)

Test code to reproduce

npx cypress run --config videosFolder='pics',screenshotsFolder='vids'

cypress.config.ts

import { defineConfig } from 'cypress';

export default defineConfig({
	e2e: {
		screenshotsFolder: 'screenshots',
		videosFolder: 'videos'
	}
});

Cypress Version

10.1

Other

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lmiller1990commented, Jun 29, 2022

A little late but I did look into this and confirm it’s definitely a bug in how we are resolving configuration precedence. Seems like a regression. We will fix this soon.

1reaction
lmiller1990commented, Jun 24, 2022

Hey, thanks for the bug report - I’ll look into this one for you, first thing next week.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does "config add --overwrite" reset any cache state, is it bad to ...
The jf config add command configures a new JFrog instance locally ... The --overwrite flag allows overriding existing server configuration.
Read more >
save-config overwrite - IBM
This command defines the system behavior when a running configuration is saved. Syntax. save-config overwrite. no save-config overwrite. Guidelines.
Read more >
Settings get overwritten after setup with wp-cli | WordPress.org
I install the plugin using with the following command: wp plugin install woocommerce-pdf-invoices-packing-slips --activate. To configure it, i use the wp ...
Read more >
Viewing overwritten configuration values in ASP.NET Core
In this post I show how you can view the overridden values from configuration for debugging purposes.
Read more >
Command line process auditing | Microsoft Learn
To ensure that Advanced Audit Policy Configuration settings are not overwritten. command-line auditing. Open the Group Policy Management console.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found