fix(peerDependency): now correctly finds bin of tsrun peer Dependency
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import * as plugins from "./tstest.plugins";
|
||||
import * as plugins from './tstest.plugins';
|
||||
import * as paths from './tstest.paths';
|
||||
import { coloredString as cs } from '@pushrocks/consolecolor';
|
||||
|
||||
import { TestDirectory } from "./tstest.classes.testdirectory";
|
||||
import { TapCombinator } from "./tstest.tap.combinator";
|
||||
import { TapParser } from "./tstest.tap.parser";
|
||||
import { TestDirectory } from './tstest.classes.testdirectory';
|
||||
import { TapCombinator } from './tstest.tap.combinator';
|
||||
import { TapParser } from './tstest.tap.parser';
|
||||
|
||||
export class TsTest {
|
||||
testDir: TestDirectory;
|
||||
@@ -16,21 +17,20 @@ export class TsTest {
|
||||
const fileNamesToRun: string[] = await this.testDir.getTestFilePathArray();
|
||||
console.log(`Found ${fileNamesToRun.length} Testfile(s):`);
|
||||
for (const fileName of fileNamesToRun) {
|
||||
console.log(cs(fileName, "orange"));
|
||||
console.log(cs(fileName, 'orange'));
|
||||
}
|
||||
console.log("-".repeat(16));
|
||||
console.log('-'.repeat(16));
|
||||
const smartshellInstance = new plugins.smartshell.Smartshell({
|
||||
executor: "bash",
|
||||
executor: 'bash',
|
||||
pathDirectories: [paths.binDirectory],
|
||||
sourceFilePaths: []
|
||||
});
|
||||
const tapCombinator = new TapCombinator(); // lets create the TapCombinator
|
||||
for (const fileName of fileNamesToRun) {
|
||||
console.log(`${cs("=> ", "blue")} Running ${cs(fileName, "orange")}`);
|
||||
console.log(`${cs('=> ', 'blue')} Running ${cs(fileName, 'orange')}`);
|
||||
console.log(`=`.repeat(16));
|
||||
const tapParser = new TapParser();
|
||||
const execResultStreaming = await smartshellInstance.execStreamingSilent(
|
||||
`tsrun ${fileName}`
|
||||
);
|
||||
const execResultStreaming = await smartshellInstance.execStreamingSilent(`tsrun ${fileName}`);
|
||||
await tapParser.handleTapProcess(execResultStreaming.childProcess);
|
||||
tapCombinator.addTapParser(tapParser);
|
||||
}
|
||||
|
Reference in New Issue
Block a user