Testing package for Atom that allows to run TestCafe tests.
TestCafe is a node.js tool to automate end-to-end web testing.
You can install via apm: apm install testcafe-runner-atom-plugin
.
Or navigate to the install tab in Atom’s settings view, and search for testcafe-runner-atom-plugin
.
This extension allows to run TestCafe test quick and easy from Atom context menu, with hotkeys or atom commands panel. Step by step:
-
Add project folder to Atom (
Important
: project root directory will must contain apackage.json
andnode_modules
folder) -
Highlight the line with the declaration of the test or fixture.
-
Choose one of the test launch options:
- In the context menu:
Run TestCafe
(orcmd+ctrl+alt+t
) - In the atom command panel:
testcafe-runner-atom-plugin:runIt
.
- In the context menu:
In the terminal panel will display TestCafe starting preferences and testing process with results (failed, passed, etc).
You can use your startup settings and specify the hostname, ports or browsers list.
Also, you can run TestCafe in the live mode.
Command | Action | Default Keybind |
---|---|---|
testcafe-runner-atom-plugin:runIt | Run test from highlighted line | ctrl-alt-cmd-t |
testcafe-runner-atom-plugin:restore | Display log panel if closed. | –––––––––––– |