-
Notifications
You must be signed in to change notification settings - Fork 0
/
suman.conf.js
executable file
·105 lines (89 loc) · 3.7 KB
/
suman.conf.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//**************************************************************************************************
// Suman config file, should always remain at the root of your project
// *************************************************************************************************
const os = require('os');
const path = require('path');
// let's get bizzy
const numOfCPUs = os.cpus().length || 1;
//////
const pkgJSON = require('./package.json');
module.exports = Object.freeze({
matchAny: [/\.ts$/], //recommended => match: ['.test.js'],
matchNone: [/fixture/],
matchAll: [],
testDir: 'test',
testSrcDir: 'test/e2e/@src',
testTargetDir: 'test/e2e/@target',
sumanHelpersDir: 'test/.suman',
runnerLock: true,
transpile: false, //default, can be overridden with command line
timeoutToSearchForAvailServer: 2000,
sendStderrToSumanErrLogOnly: true,
useSuiteNameInTestCaseOutput: false,
defaultDelayFunctionTimeout: 8000,
warningLevel: 3,
noFrills: false,
defaultTestSuiteTimeout: 15000,
maxParallelProcesses: 25, //maximum parallel processes running at one time
ultraSafe: false, //if true, Suman reads files before executing any supposed test file and makes sure it's a suman test before running
verbose: true, //handles and logs warnings (using warning level?)
checkMemoryUsage: false, //limits stack traces to just relevant test case or test line
fullStackTraces: false, //allows you to view more than 3 lines for errors in test cases and hooks
uniqueAppName: pkgJSON.name || 'poolio',
NODE_ENV: 'development', // NODE_ENV to use if you don't specify one
browser: 'Firefox', // browser to open test results with
disableAutoOpen: false, // use true if you never want suman to automatically open the browser to the latest test results
expireResultsAfter: '10000000', // test results will be deleted after this amount of time
resultsCapCount: 100, // test results will be deleted if they are 101st oldest run
suppressRunnerOutput: true, // this defaults to true, use no-silent or silent to switch value
resultsCapSize: 7000, // 3 gb's // oldest test results will be deleted if the results dir expands beyond this size
//
watch: {
'//tests': {
script: function (p) {
return `./node_modules/.bin/suman ${p}`
},
include: [],
exclude: ['^test.*']
},
'//project': {
script: 'suman',
include: [__dirname],
exclude: ['^test.*']
},
},
reporters: {
'tap': 'suman/reporters/tap'
},
servers: { // list of servers to output test result data to, with the os.hostname() as the key
'*default': {
host: '127.0.0.1',
port: 6969
},
'###': { /// replace this with user's local machines os.hostname()
host: '127.0.0.1',
port: 6969
},
},
useBabel: false,
useBabelRegister: false,
babelRegisterOpts: {
// Optional ignore regex - if any filenames match this regex then they
// aren't compiled.
ignore: /fixture/,
// Ignore can also be specified as a function.
// ignore: function(filename) {
// if (filename === '/path/to/es6-file.js') {
// return false;
// } else {
// return true;
// }
// },
// Optional only regex - if any filenames *don't* match this regex then they
// aren't compiled
// only: /my_es6_folder/,
// Setting this will remove the currently hooked extensions of .es6, `.es`, `.jsx`
// and .js so you'll have to add them back if you want them to be used again.
extensions: ['.es6', '.es', '.jsx', '.js']
}
});