Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce --config-file argument #3246

Merged
merged 74 commits into from
Sep 27, 2019
Merged

Conversation

flotwig
Copy link
Contributor

@flotwig flotwig commented Jan 29, 2019

@flotwig
Copy link
Contributor Author

flotwig commented Feb 4, 2019

Added some visual changes when they're using this option.

With a custom config file set:
image

With false specified:
image

With no special argument (default):
image

@flotwig flotwig force-pushed the issue-1369-configFile-arg branch 3 times, most recently from 021f314 to 475cc41 Compare February 4, 2019 22:02
cli/lib/cli.js Outdated Show resolved Hide resolved
packages/server/lib/util/settings.js Outdated Show resolved Hide resolved
@flotwig flotwig requested review from jennifer-shehane, kuceb, brian-mann and a team August 14, 2019 13:46
@flotwig flotwig force-pushed the issue-1369-configFile-arg branch from a2a043e to b888ba3 Compare August 14, 2019 14:22
@cypress
Copy link

cypress bot commented Aug 14, 2019



Test summary

3363 0 47 0


Run details

Project cypress
Status Passed
Commit a6719aa
Started Sep 26, 2019 8:53 PM
Ended Sep 26, 2019 8:58 PM
Duration 04:46 💡
OS Linux Debian - 9.8
Browser Multiple

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@jennifer-shehane jennifer-shehane merged commit 49f5b3e into develop Sep 27, 2019
@kentcdodds
Copy link

Yay!!! Toolkits rejoice!

grabartley pushed a commit to grabartley/cypress that referenced this pull request Oct 6, 2019
* cli, server: introduce --config-file argument

* server: remove unused import

* server: wip

* server: consider --config-file in settings

* server: pass options to settings.read from config

* server: store options in Project class, pass to all settings calls

* server: _initPlugins needs to accept options, for being called from server

* server: accept optional external options in open

* cli: update help snapshots

* server: realizing now that these were written like this so they could be stubbed - removing some unnecessary usages of @options

* cli: pass configFile when it's false

* server: --config-file false and --config-file blah.json work

* server: add unit tests for --config-file

* server: pass configFile to desktop-gui

* desktop-gui: display 'cypress.json' according to --config-file arg

* desktop-gui: add integration tests for --config-file

* cli: add tests for --config-file

* PR changes

* PR changes

* cli: update snapshots

* server: updating error messages

* runner: update cypress.json mention

* fixing name overlap

* server: integration tests for --config-file

* runner: update Header component tests

* cli: fix snapshot

* desktop-gui: fix test

* driver: fixing error messages - not really any visibility to cli args from here so just static strings

* server: update snapshots

* server: update snapshots

* cli: updating snapshot

* driver: how did i miss this?

* add skipped blank line to the snapshot

* fix missing proxy require statement (was lost in merge of develop)...weird

* add module API defs to types

* module API tests

* send better error when config file can't be found

* fix dtslint test

* update cli help to use 'configuration file'

* update snapshot using 7.7.1 in place

* fix failing config_spec

* be.visible

* show custom config file name in driver errors

* add tests for non-default config file in driver error messages

* single-quote config file name

* 🙅 IIFEs 🙅

* 🤦

* fix failing test

* fix failing test, cleanup

* lint

* delete duplicate coffee spec

* Update run.js

* Delete app_spec.js.mp4

* in open mode, only store projects to recents list if 'cypress.json' is the configFile

discussion: https://git.io/JeGyF

* feedback
@flotwig flotwig deleted the issue-1369-configFile-arg branch January 24, 2022 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add --config-file CLI argument
9 participants