Skip to content

Commit 13e5a82

Browse files
committed
fix: runner tests
1 parent 1f3345e commit 13e5a82

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/runner/custom_masking_test.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
const { expect } = require('expect')
2-
const exec = require('child_process').exec
1+
const { exec } = require('child_process')
32
const { assert } = require('chai')
3+
const path = require('path')
44

5-
describe('Custom Masking Integration Tests', () => {
6-
const config_run_config = config => `node ./bin/codecept.js run --config test/data/sandbox/${config}`
5+
const runner = path.join(__dirname, '/../../bin/codecept.js')
6+
const codecept_dir = path.join(__dirname, '/../data/sandbox')
7+
const codecept_run = `${runner} run`
8+
const config_run_config = config => `${codecept_run} --config ${codecept_dir}/${config}`
79

10+
describe('Custom Masking Integration Tests', () => {
811
it('should mask custom patterns in debug mode', done => {
912
exec(config_run_config('codecept.bdd.masking.js') + ' --debug --grep "Custom Data Masking"', (err, stdout, stderr) => {
1013
console.log('STDOUT:', stdout)

0 commit comments

Comments
 (0)