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

feat: create-cypress-tests wizard #8857

Merged
merged 82 commits into from
Nov 30, 2020
Merged

Conversation

dmtrKovalenko
Copy link
Contributor

@dmtrKovalenko dmtrKovalenko commented Oct 15, 2020

This PR adds a new project that can be run as yarn create cypress-tests or npx create-cypress-tests to install cypress and all required dependencies including component tests.

Features of this approach:

  1. Fails if user git status contains untracked or uncommitted changes
  2. Automatically determines yarn or npm to use
  3. Copies and creates plugins and support files so the developer can instantly start writing tests without yarn cypress open
  4. Determines if the project is using typescript and injects tsconfig.json
  5. Has --ignore-examples option, which will create a dummy spec file from scratch so if the user will open cypress initially it won't create examples.
  6. Asks for component testing, determine which framework (vue or react) is using and installs the right framework adapter
  7. All the required configuration for component testing is automagically injected right to the user config using babel

Things to do

Test it right now:

Run yarn create cypress-tests-beta or npx create-cypress-tests-beta to check how it works.

Quick demo:
demo

elevatebart
elevatebart previously approved these changes Nov 19, 2020
Copy link
Contributor

@elevatebart elevatebart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go !!

@dmtrKovalenko
Copy link
Contributor Author

I'd like to clarify with @JessicaSachs is anything more needed to publish a new package by semantic release

Copy link
Contributor

@elevatebart elevatebart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of odd changes

@dmtrKovalenko dmtrKovalenko changed the base branch from develop to master November 24, 2020 16:30
@dmtrKovalenko dmtrKovalenko changed the base branch from master to develop November 24, 2020 16:30
@JessicaSachs JessicaSachs merged commit 21ee591 into develop Nov 30, 2020
@JessicaSachs JessicaSachs deleted the feature/cross-platform-wizard branch November 30, 2020 18:20
flotwig added a commit that referenced this pull request Dec 7, 2020
@dmtrKovalenko dmtrKovalenko restored the feature/cross-platform-wizard branch December 8, 2020 12:40
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.

None yet

4 participants