Skip to content

Commit dffdc24

Browse files
author
Dave Woodward
committed
Makes QUnit take screenshots of our unit tests and also makes PhantomJS viewport bigger
1 parent 90fe469 commit dffdc24

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Gruntfile.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,14 @@ module.exports = function(grunt) {
209209
qunit: {
210210
full: {
211211
options: {
212-
urls: '<%= allTestUrls %>'
212+
urls: '<%= allTestUrls %>',
213+
screenshot: true,
214+
page: {
215+
viewportSize: {
216+
width: 1280,
217+
height: 1024
218+
}
219+
}
213220
}
214221
},
215222
simple: ['test/*.html']
@@ -445,4 +452,4 @@ module.exports = function(grunt) {
445452
grunt.registerTask('servedist', 'test, build "dist", serve files w/ watch', ['test', 'dist', 'connect:server', 'watch:full']);
446453

447454

448-
};
455+
};

0 commit comments

Comments
 (0)