import * as testRunner from 'vscode/lib/testrunner' ; const os = process . env . AGENT_OS || 'Developer' ; const date = new Date ( ) . toISOString ( ) . replace ( /:/g , '-' ) . replace ( /\.\d+/ , '' ) ; process . env . SUITE_NAME = `${ os } Tests` ; process . env . XUNIT_FILE = `TEST-RESULTS-${ os }-${ date }.xml` ; console . log ( `Suite Name: ${ process . env . SUITE_NAME }` ) ; console . log ( `Test Results File: ${ process . env . XUNIT_FILE }` ) ; testRunner . configure ( { ui : 'tdd' , useColors : true , reporter : 'spec-xunit-file' } ) ; module . exports = testRunner ;