tia
Version:
Time is All (logs driven test engine with ExtJs support)
24 lines (18 loc) • 601 B
text/typescript
import * as path from 'path';
import * as fileUtils from './file-utils';
import { appendFileSync } from 'fs';
export function getNoEtalonTestsInfoPath() {
const noEtalonTestsPath = path.join(
gIn.suite.root,
gT.engineConsts.suiteResDirName,
gT.engineConsts.noEtalonTests
);
return noEtalonTestsPath;
}
export function saveNewTestInfo(testPath: string) {
const pathToAdd = path.relative(gIn.suite.root, testPath);
appendFileSync(getNoEtalonTestsInfoPath(), `${pathToAdd}\n`, 'utf8');
}
export function rmNewTestsInfo() {
fileUtils.safeUnlink(getNoEtalonTestsInfoPath());
}