@@ -11,15 +11,15 @@ describe('Failed Tests Feature', function () {
1111
1212 afterEach ( ( ) => {
1313 try {
14- fs . unlinkSync ( `${ codecept_dir } /failed-tests.json` )
14+ fs . unlinkSync ( `${ codecept_dir } /_output/ failed-tests.json` )
1515 } catch ( e ) {
1616 // continue regardless of error
1717 }
1818 } )
1919
2020 it ( 'should save failed tests to JSON file' , done => {
2121 exec ( `${ runner } run --config ${ codecept_dir } /codecept.conf.js --save-failed-tests` , ( err , stdout ) => {
22- const failedTestsFile = `${ codecept_dir } /failed-tests.json`
22+ const failedTestsFile = `${ codecept_dir } /_output/ failed-tests.json`
2323
2424 // Should have failed tests
2525 assert ( err , 'Expected tests to fail' )
@@ -49,7 +49,7 @@ describe('Failed Tests Feature', function () {
4949 {
5050 uid : 'should fail test 1' ,
5151 title : 'should fail test 1' ,
52- fullTitle : 'Failed Tests should fail test 1' ,
52+ fullTitle : 'Failed Tests: should fail test 1' ,
5353 file : `${ codecept_dir } /failed_test.js` ,
5454 parent : { title : 'Failed Tests' } ,
5555 } ,
@@ -72,7 +72,7 @@ describe('Failed Tests Feature', function () {
7272
7373 it ( 'should work with run-workers command' , done => {
7474 exec ( `${ runner } run-workers 2 --config ${ codecept_dir } /codecept.conf.js --save-failed-tests` , ( err , stdout ) => {
75- const failedTestsFile = `${ codecept_dir } /failed-tests.json`
75+ const failedTestsFile = `${ codecept_dir } /_output/ failed-tests.json`
7676
7777 // Should have failed tests
7878 assert ( err , 'Expected tests to fail' )
0 commit comments