Skip to content

Commit ff2f7f1

Browse files
committed
add more tests
1 parent 2e1b93d commit ff2f7f1

12 files changed

+65
-476
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ node_modules
22
dist
33
/.vscode/
44
/coverage/
5-
/cypress/videos
5+
/reports/
66
*.log
77
.DS_Store

.npmignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/tasks/
77
/test/
88
/coverage/
9-
/cypress/
9+
/reports/
1010
/.vscode/
1111
Gruntfile.js
1212
.travis.yml
@@ -17,4 +17,5 @@ Gruntfile.js
1717
.gitignore
1818
.prettierrc
1919
.DS_Store
20-
package-lock.json
20+
package-lock.json
21+
cypress.json

Gruntfile.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ module.exports = function (grunt) {
3131
prettier: grunt.file.readJSON('tasks/prettier.json'),
3232
json_merge: grunt.file.readJSON('tasks/json_merge.json'),
3333
connect: grunt.file.readJSON('tasks/connect.json'),
34-
'http-server': grunt.file.readJSON('tasks/server.json'),
3534
bgShell: grunt.file.readJSON('tasks/shell.json'),
3635
concat: grunt.file.readJSON('tasks/concat.json'),
3736
uglify: grunt.file.readJSON('tasks/uglify.json')
@@ -83,7 +82,7 @@ module.exports = function (grunt) {
8382

8483
// start the server
8584
grunt.registerTask('start',
86-
'http-server'
85+
'connect:web-server'
8786
);
8887

8988
// build for web
@@ -142,13 +141,13 @@ module.exports = function (grunt) {
142141

143142
// run tests locally
144143
grunt.registerTask('test', [
145-
'http-server',
144+
'connect:dev-server',
146145
'bgShell:cypress-dev'
147146
]);
148147

149148
// run tests in CI
150149
grunt.registerTask('ci', [
151-
'http-server',
150+
'connect:dev-server',
152151
'bgShell:cypress-ci'
153152
]);
154153
};

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![npm](https://img.shields.io/npm/v/system-designer.svg)](https://www.npmjs.com/package/system-designer)
44
[![Build Status](https://travis-ci.org/design-first/system-designer.svg?branch=master)](https://travis-ci.org/design-first/system-designer)
5+
[![Cypress.io tests](https://img.shields.io/badge/cypress.io-tests-green.svg?style=flat-square)](https://cypress.io)
56
[![devDependency Status](https://david-dm.org/design-first/system-designer/dev-status.svg)](https://david-dm.org/design-first/system-designer#info=devDependencies)
67
[![npm](https://img.shields.io/npm/dt/system-designer.svg)](https://www.npmjs.com/package/system-designer)
78

cypress.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
{
2-
"projectId": "558dq3"
2+
"projectId": "558dq3",
3+
"fixturesFolder": "specs/fixtures",
4+
"integrationFolder": "specs/integration",
5+
"pluginsFile": "specs/plugins",
6+
"supportFile": "specs/support",
7+
"screenshotsFolder": "reports/screenshots",
8+
"videosFolder": "reports/videos",
9+
"chromeWebSecurity": false
310
}

0 commit comments

Comments
 (0)