Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Basic initialisation test for Editor.js #1410
Conversation
Steps to test the PR and run all the cypress tests:
@neSpecc @khaydarov @gohabereg @robonetphy and to everyone else who wants to test and review this PR. |
Hello! Do you have a plan to measure test coverage? And, would you use CodeCov, and display code coverage as badge in README.md? |
I think, we can adjust the CodeCov a little bit later, when we'll write more tests. |
@neSpecc OK! |
Thanks! @neSpecc |
"svg:win": "if not exist dist md dist && yarn svg", | ||
"svg": "svg-sprite-generate -d src/assets/ -o dist/sprite.svg", | ||
"pull_tools": "git submodule update --init --recursive", | ||
"checkout_tools": "git submodule foreach git pull origin master" | ||
"checkout_tools": "git submodule foreach git pull origin master", | ||
"test:e2e": "cypress open" |
hata6502
Nov 21, 2020
Contributor
Suggested change
"test:e2e": "cypress open"
"test:e2e": "cypress run",
"cypress:open": "cypress open"
cypress open: Open cypress GUI window.
cypress run: Run cypress test in CUI.
"test:e2e": "cypress open" | |
"test:e2e": "cypress run", | |
"cypress:open": "cypress open" |
cypress open: Open cypress GUI window.
cypress run: Run cypress test in CUI.
In this PR, I have set up Cypress testing framework and added a basic test which asserts whether an instance of EditorJS in created or not in
<div id="editorjs"></div>
.Steps to test the PR and run all the cypress tests:
Run
yarn install
to add the added cypress dependency which will install the cypress framework.Run
yarn test:dev
in a separate terminal. This will create an express server hosting the test files.Run
yarn test:cypress
. This will automatically open the installed cypress framework and it will use the default browser in under automation to run all the tests and show you the results.