mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
parent
3d42a3338f
commit
933a8c764a
@ -237,6 +237,10 @@ var path = require('path'),
|
|||||||
'core/test/unit/**/export_spec.js',
|
'core/test/unit/**/export_spec.js',
|
||||||
'core/test/unit/**/import_spec.js'
|
'core/test/unit/**/import_spec.js'
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
integration: {
|
||||||
|
src: ['core/test/integration/**/model*_spec.js']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -865,9 +869,11 @@ var path = require('path'),
|
|||||||
|
|
||||||
grunt.registerTask('test-unit', 'Run unit tests', ['clean:test', 'setTestEnv', 'loadConfig', 'express:test', 'mochacli:all']);
|
grunt.registerTask('test-unit', 'Run unit tests', ['clean:test', 'setTestEnv', 'loadConfig', 'express:test', 'mochacli:all']);
|
||||||
|
|
||||||
|
grunt.registerTask('test-integration', 'Run integration tests', ['clean:test', 'setTestEnv', 'loadConfig', 'express:test', 'mochacli:integration']);
|
||||||
|
|
||||||
grunt.registerTask('test-functional', 'Run casperjs tests only', ['clean:test', 'setTestEnv', 'express:test', 'spawn-casperjs']);
|
grunt.registerTask('test-functional', 'Run casperjs tests only', ['clean:test', 'setTestEnv', 'express:test', 'spawn-casperjs']);
|
||||||
|
|
||||||
grunt.registerTask('validate', 'Run tests and lint code', ['jslint', 'test-unit', 'test-functional']);
|
grunt.registerTask('validate', 'Run tests and lint code', ['jslint', 'test-unit', 'test-integration', 'test-functional']);
|
||||||
|
|
||||||
grunt.registerTask('docs', 'Generate Docs', ['groc']);
|
grunt.registerTask('docs', 'Generate Docs', ['groc']);
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*globals describe, it, before, beforeEach, afterEach */
|
/*globals describe, it, before, beforeEach, afterEach */
|
||||||
var testUtils = require('./testUtils'),
|
var testUtils = require('../unit/testUtils'),
|
||||||
should = require('should'),
|
should = require('should'),
|
||||||
errors = require('../../server/errorHandling'),
|
errors = require('../../server/errorHandling'),
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
/*globals describe, before, beforeEach, afterEach, it */
|
/*globals describe, before, beforeEach, afterEach, it */
|
||||||
var testUtils = require('./testUtils'),
|
var testUtils = require('../unit/testUtils'),
|
||||||
should = require('should'),
|
should = require('should'),
|
||||||
_ = require('underscore'),
|
_ = require('underscore'),
|
||||||
when = require('when'),
|
when = require('when'),
|
@ -1,5 +1,5 @@
|
|||||||
/*globals describe, it, before, beforeEach, afterEach */
|
/*globals describe, it, before, beforeEach, afterEach */
|
||||||
var testUtils = require('./testUtils'),
|
var testUtils = require('../unit/testUtils'),
|
||||||
should = require('should'),
|
should = require('should'),
|
||||||
errors = require('../../server/errorHandling'),
|
errors = require('../../server/errorHandling'),
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
/*globals describe, before, beforeEach, afterEach, it*/
|
/*globals describe, before, beforeEach, afterEach, it*/
|
||||||
var testUtils = require('./testUtils'),
|
var testUtils = require('../unit/testUtils'),
|
||||||
should = require('should'),
|
should = require('should'),
|
||||||
_ = require("underscore"),
|
_ = require("underscore"),
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
/*globals describe, before, beforeEach, afterEach, it */
|
/*globals describe, before, beforeEach, afterEach, it */
|
||||||
var testUtils = require('./testUtils'),
|
var testUtils = require('../unit/testUtils'),
|
||||||
_ = require("underscore"),
|
_ = require("underscore"),
|
||||||
when = require('when'),
|
when = require('when'),
|
||||||
sequence = require('when/sequence'),
|
sequence = require('when/sequence'),
|
@ -1,5 +1,5 @@
|
|||||||
/*globals describe, before, beforeEach, afterEach, it*/
|
/*globals describe, before, beforeEach, afterEach, it*/
|
||||||
var testUtils = require('./testUtils'),
|
var testUtils = require('../unit/testUtils'),
|
||||||
should = require('should'),
|
should = require('should'),
|
||||||
when = require('when'),
|
when = require('when'),
|
||||||
_ = require('underscore'),
|
_ = require('underscore'),
|
Loading…
Reference in New Issue
Block a user