Skip to content

Commit

Permalink
update document files
Browse files Browse the repository at this point in the history
add an e2e test spec
  • Loading branch information
yuanbo03 committed Apr 26, 2015
1 parent 2bd8a38 commit 861404d
Show file tree
Hide file tree
Showing 16 changed files with 6,705 additions and 4,930 deletions.
27 changes: 27 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ module.exports = function(grunt) {
'docs/dist'
]
}
},
e2e: {
options: {
open: false,
port: 8081,
base: ['docs/dist']
}
}
},

Expand Down Expand Up @@ -245,6 +252,20 @@ module.exports = function(grunt) {
src: ['dist/js/nya-bs-select.js'],
dest: 'dist/js/nya-bs-select.js'
}
},

protractor: {
options: {
keepAlive: true,
args: {
baseUrl: 'http://localhost:8081/examples/'
}
},
e2e: {
options: {
configFile: 'e2e-test/config.js'
}
}
}
});

Expand Down Expand Up @@ -287,4 +308,10 @@ module.exports = function(grunt) {
'connect:docs',
'watch'
]);

// e2e test
grunt.registerTask('e2e', [
'connect:e2e',
'protractor'
]);
};
Loading

0 comments on commit 861404d

Please sign in to comment.