https://github.com/existenzial/testcafe-zero
a helpful TestCafe e2e integration starter with React, Vue, Angular, and Vanilla JS template integration examples
https://github.com/existenzial/testcafe-zero
angular e2e e2e-testing javascript nodejs react testcafe testcafe-react-selectors testcafe-vue-selectors vue
Last synced: 16 days ago
JSON representation
a helpful TestCafe e2e integration starter with React, Vue, Angular, and Vanilla JS template integration examples
- Host: GitHub
- URL: https://github.com/existenzial/testcafe-zero
- Owner: existenzial
- Created: 2018-07-10T01:57:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-10T06:45:09.000Z (almost 8 years ago)
- Last Synced: 2025-03-09T21:28:37.882Z (about 1 year ago)
- Topics: angular, e2e, e2e-testing, javascript, nodejs, react, testcafe, testcafe-react-selectors, testcafe-vue-selectors, vue
- Language: JavaScript
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
**TestCafe** is a `node` based **e2e** automated testing solution using a [URL-rewriting proxy](https://github.com/DevExpress/testcafe-hammerhead "More Info") designed to free you from Selenium and Web Driver restrictions once and for all.
```bash
tests
| |__ **.spec.js
|
testcafe.json # Config (Optional)
```
## General
- **Info** - TestCafe
- **Repo** - Github repository
- **Plugins**
- TestCafe Live (_add - watch mode_)
- React
- Vue
- ESLint
- Accessibility
- VSCode
- and many more...
## Included
```bash
# TestCafe
yarn add --dev testcafe
# Watch Mode
yarn add --dev testcafe-live
# ESLint Config
yarn add --dev eslint-plugin-testcafe
# React Selectors
yarn add --dev testcafe-react-selectors
# Vue Selectors
yarn add --dev testcafe-vue-selectors
# Angular Selectors
yarn add --dev testcafe-angular-selectors
```
## Get Started
```bash
# Run tests
yarn test
# Run tests in watch mode
yarn test:watch
# Run mobile tests
yarn test:device
# Remove all integrations & start fresh
yarn eject
```
## Pros
- Cross-browser support (even _IE_ _+ physical mobile devices via QR code scan_)
- Selenium and WebDriver free
- Little to no configuration
- Can execute tests concurrently
- Easy Jenkins CI integration
- Framework-specific selectors (e.g.: _React_ ⚛️, _Vue_ 🇻 etc.)
- Stellar documentation
- Explicit use of `async` and `await` for asynchronous execution
## Cons
- Non-intuitive syntax (e.g.: _"fixtures"_ vs. _"describe"_)
- no dedicated app for VQA
- Node limitations
- A work in progress
## Contributors
[
](https:/github.com/existenzial)
[✉️](mailto:ripley36706@gmail.com)