-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mocha.rp.js
31 lines (29 loc) · 938 Bytes
/
.mocha.rp.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
/* eslint-disable @typescript-eslint/no-var-requires */
const { config } = require('dotenv');
const { join } = require('path');
config({ path: join(process.cwd(), '.env') });
module.exports = {
spec: ['src/test/**/*.ts'],
package: './package.json',
extension: ['ts', 'js'],
timeout: 5 * 1000,
color: true,
grep: '',
ignore: [''],
reporter: '@reportportal/agent-js-mocha',
'reporter-option': [
`apiKey= ${process.env.REPORT_PORTAL_KEY}`,
'endpoint=http://localhost:8080/api/v1',
'launch=supertest-ts-mocha-api-test',
`project=${process.env.REPORT_PORTAL_PROJECT}`,
'description=supertest mocha api test reports',
`attributes=[{"env":"${process.env.ENV}"}, smoke, integration]`,
],
require: ['ts-node/register, tsconfig-paths/register'],
parallel: false,
recursive: false,
retries: 0,
slow: '75',
sort: false,
ui: 'bdd'
};