-
Notifications
You must be signed in to change notification settings - Fork 1
5.3 Testing tools
Amos Wong edited this page Apr 17, 2017
·
10 revisions
# run all tests
yarn test
# run unit tests once
yarn run unit
# run unit tests which watches for file changes
yarn run unit-watch
# run e2e tests
yarn run e2e
# command used by travis. currently it will run unit test only
yarn run test-travis
yarn test
In this project we will be using the following tools for our testing
BDD - chai expect
For unit testing, use *.spec.js
nightwatchjs, selenium and Chrome Webdriver
// For authoring Nightwatch tests, see
// http://nightwatchjs.org/guide#usage
module.exports = {
'default e2e tests': function test(browser) {
// automatically uses dev Server port from /config.index.js
// default: http://localhost:8080
// see nightwatch.conf.js
const devServer = browser.globals.devServerURL;
browser
.url(devServer)
.waitForElementVisible('#app', 5000)
.assert.elementPresent('.hello')
.assert.containsText('h1', 'Welcome to Your Vue.js App')
.assert.elementCount('img', 1)
.end();
},
};
These tools are chosen primarily because they are already included in the VueJs webpack boilerplate
by Sashimi 🐟
- Introduction
- Project Work Log
- Software Requirements 3.1 Functional Requirements
- Design 4.1 Architecture Diagram
- Developer Guide 5.1 Getting started
- Evaluation Report 6.1 Usability Evaluation
- Misc 7.1 Dog Fooding Process
3.2 Non functional Requirements
3.3 Abuser Stories
3.4 Glossary
4.2 Entity Relationship Diagram
4.3 UI Design
5.2 Resources
5.3 Testing tools
5.4 API Documents
6.2 Performance Evaluation
6.3 Security Evaluation