Skip to content

Commit 2b3c6a1

Browse files
miherlosevegoist
authored andcommitted
add description about testcafe (egoist#99)
1 parent 11ece9d commit 2b3c6a1

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ If you have been suffering from configuration hell, give [vbuild](https://github
1818
- [Babel 6](/docs/babel.md)
1919
- [PostCSS](/docs/postcss.md)
2020
- [JSX components are supported by default](/docs/jsx.md)
21+
- [Testcafe](/docs/testcafe.md)
2122
- [Electron support](/docs/electron.md) (optional)
2223
- [CSS modules](/docs/css-modules.md) (optional)
2324
- A boilerplate which is small and focusing on client-side apps
@@ -77,7 +78,8 @@ If you did not enable Eletron support, the dest folder is `./dist`, otherwise it
7778
├── client # client-side app files
7879
├── dist # bundled files and index.html
7980
│ ├── index.html
80-
│ └── [...other bundled files]
81+
│ └── [...other bundled files]
82+
├── tests # e2e tests written by testcafe
8183
├── node_modules # dependencies
8284
└── package.json # package info
8385
```

docs/testcafe.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Testcafe
2+
3+
Template contains an example of e2e tests written by [testcafe](http://github.com/devexpress/testcafe).
4+
5+
## Structure
6+
`tests/index.js` contains the first test.
7+
8+
`tests/page-model.js` contains [Page Model](https://martinfowler.com/bliki/PageObject.html) that describes the `index.html` page.
9+
10+
## Run
11+
`npm run test`
12+
13+
e2e tests will run for all browsers that installed on target machine.
14+
15+
For details, see section `scripts/test` of `package.json` file
16+
and [testcafe documentation](https://devexpress.github.io/testcafe/documentation/)
17+

0 commit comments

Comments
 (0)