-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrun
More file actions
executable file
·22 lines (19 loc) · 806 Bytes
/
run
File metadata and controls
executable file
·22 lines (19 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env node
const pentf = require('./src/index.js');
const lockserver = require('./lockserver/lockserver');
pentf.main({
rootDir: __dirname, // Mandatory
testsGlob: 'tests/*.{js,mjs,cjs}',
// All further properties are optional
beforeAllTests: lockserver.beforeAllTests,
afterAllTests: lockserver.afterAllTests,
description: 'Test pentf itself',
defaultConfig: config => {
// You can compute more complicated properties here. For example ...
config.rejectUnauthorized = false; // Allow self-signed TLS certificates
config.report_header_md =
'This is the end-to-end test report in *markdown* form.';
config.report_header_html =
'This is the end-to-end test report in <strong>HTML/PDF</strong> form.';
},
});