Added end to end test suite and test for issue #99

This commit is contained in:
Sergey Kirillov 2014-05-28 22:23:18 +03:00
parent 9cd7d280dc
commit e9e6082aae
6 changed files with 2520 additions and 1 deletions

View file

@ -102,6 +102,17 @@ module.exports = function(grunt) {
execute: {
tests: {src: [currentVersionArchiveFolder + "/mithril-tests.js"]}
},
qunit: {
all: ['tests/e2e/**/*.html']
},
connect: {
server: {
options: {
port: 8000,
base: '.'
}
}
},
clean: {
options: {force: true},
generated: [tempFolder]
@ -116,9 +127,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks("grunt-md2html");
grunt.loadNpmTasks("grunt-replace");
grunt.loadNpmTasks('grunt-zip');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.registerTask("build", ["test", "uglify", "zip", "md2html", "replace", "copy", "clean"]);
grunt.registerTask("test", ["concat", "execute"]);
grunt.registerTask('teste2e', ['connect', 'qunit']);
grunt.registerTask("default", ["build"]);
};