|
56 | 56 | }); |
57 | 57 |
|
58 | 58 | desc("Test everything"); |
59 | | - task("test", ["testServer", "testClient"]); |
| 59 | + task("test", ["testServer", "testClient", "testSmoke"]); |
60 | 60 |
|
61 | 61 | desc("Test server code"); |
62 | 62 | task("testServer", ["nodeVersion", TEMP_TESTFILE_DIR], function() { |
|
68 | 68 | testacular.runTests(SUPPORTED_BROWSERS, complete, fail); |
69 | 69 | }, {async: true}); |
70 | 70 |
|
| 71 | + desc("End-to-end smoke tests"); |
| 72 | + task("testSmoke", function() { |
| 73 | + nodeunit.runTests(smokeTestFiles(), complete, fail); |
| 74 | + }, {async: true}); |
| 75 | + |
71 | 76 | desc("Deploy to Heroku"); |
72 | 77 | task("deploy", ["default"], function() { |
73 | 78 | console.log("1. Make sure 'git status' is clean."); |
|
115 | 120 | function serverTestFiles() { |
116 | 121 | var testFiles = new jake.FileList(); |
117 | 122 | testFiles.include("src/server/**/_*_test.js"); |
| 123 | + testFiles = testFiles.toArray(); |
| 124 | + return testFiles; |
| 125 | + } |
| 126 | + |
| 127 | + function smokeTestFiles() { |
| 128 | + var testFiles = new jake.FileList(); |
118 | 129 | testFiles.include("src/_*_test.js"); |
119 | 130 | testFiles = testFiles.toArray(); |
120 | 131 | return testFiles; |
|
123 | 134 | function nodeLintFiles() { |
124 | 135 | var javascriptFiles = new jake.FileList(); |
125 | 136 | javascriptFiles.include("*.js"); |
| 137 | + javascriptFiles.include("build/util/*.js"); |
126 | 138 | javascriptFiles.include("src/server/**/*.js"); |
127 | 139 | javascriptFiles.include("src/*.js"); |
128 | 140 | return javascriptFiles.toArray(); |
|
0 commit comments