Skip to content

181 - Setup Cypress - #182

Open
robinlarsson wants to merge 3 commits into
mainfrom
feature/181-setup-cypress
Open

181 - Setup Cypress#182
robinlarsson wants to merge 3 commits into
mainfrom
feature/181-setup-cypress

Conversation

@robinlarsson

@robinlarsson robinlarsson commented Mar 25, 2021

Copy link
Copy Markdown
Collaborator

#181

Run with:
npm run cypress:open

https://www.cypress.io/

@robinlarsson
robinlarsson requested a review from Zomis March 25, 2021 20:39
@robinlarsson robinlarsson self-assigned this Mar 25, 2021
@@ -0,0 +1,2 @@
export const BASE_URL = 'http://localhost:8080'
export const GUEST_TOKEN = 'C3qH3VVmoqR/rbxJIiVys1jW5jE0bDtuixWVorDfJhE='; No newline at end of file

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

upps. Public now and 4-ever.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The guest token can easily be changed later

Comment thread games-vue-client/cypress/integration/gameList.spec.js Outdated
Comment thread games-vue-client/cypress/fixtures/example.json Outdated
@@ -0,0 +1,2 @@
export const BASE_URL = 'http://localhost:8080'
export const GUEST_TOKEN = 'C3qH3VVmoqR/rbxJIiVys1jW5jE0bDtuixWVorDfJhE='; No newline at end of file

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The guest token can easily be changed later

@robinlarsson robinlarsson added the build-and-test Issues related to building the project and all kinds of automatic tests label Mar 25, 2021
@robinlarsson
robinlarsson changed the base branch from master to main April 8, 2021 18:40
@Zomis

Zomis commented Jan 31, 2022

Copy link
Copy Markdown
Owner

Sorry for taking so long to look at this!

If I'm not mistaken, Cypress is a tool for automated testing, but how does it differ from all the other tools for frontend testing out there?

Also, how to run this? Is it npm run cypress:open ?

@robinlarsson

Copy link
Copy Markdown
Collaborator Author

Sorry for taking so long to look at this!

If I'm not mistaken, Cypress is a tool for automated testing, but how does it differ from all the other tools for frontend testing out there?

Also, how to run this? Is it npm run cypress:open ?

Cypress, TestCafé and Protractor are the tools that I have most experience with.

Cypress seems faster, more stable, good tools, bigger community, popularity.

Run with npm run cypress:open

At my current assignment we use TestCafé, pretty similar to Cypress:
https://testcafe.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-and-test Issues related to building the project and all kinds of automatic tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants