-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.js
36 lines (30 loc) · 998 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var _ = require('underscore');
var Elixir = require('laravel-elixir');
var codecept = require('gulp-codeception');
var runTests = require('laravel-elixir/tasks/shared/Tests');
var config = Elixir.config;
/*
|----------------------------------------------------------------
| Codeception Testing
|----------------------------------------------------------------
|
| This task will trigger your entire Codeception test suite and
| will show notifications indicating the success or failure
| of that test suite. It works great with the tdd task.
|
*/
Elixir.extend('codeception', function(src, options) {
config.testing.codeception = {
path: 'tests',
options: {
clear: true,
notify: true
}
};
runTests({
name: 'codeception',
src: src || (config.testing.codeception.path + '/**/*+(Test|Cept|Cest).php'),
plugin: codecept,
pluginOptions: options || config.testing.codeception.options
});
});