Skip to content

Commit

Permalink
add log to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei committed Sep 13, 2024
1 parent 641aef6 commit d799147
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/integration/test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Transpiler } from '../../src/transpiler.js';
import * as fs from 'fs';
import { exec } from "node:child_process";
import { green, yellow, red } from "colorette";
import { green, yellow, red, blue } from "colorette";
const { readFileSync, writeFileSync } = fs;

const TS_TRANSPILABLE_FILE = "./tests/integration/source/transpilable.ts";
Expand Down Expand Up @@ -97,18 +97,21 @@ function runCommand(command) {
async function runTS() {
const command = "node --no-warnings --loader ts-node/esm " + TS_FILE;
const result = await runCommand(command);
console.log(blue("Executed TS"))
return result;
}

async function runPHP() {
const command = "php " + PHP_FILE;
const result = await runCommand(command);
console.log(blue("Executed PHP"))
return result;
}

async function runPy() {
const command = "python3 " + PY_FILE;
const result = await runCommand(command);
console.log(blue("Executed PY"))
return result;
}

Expand All @@ -117,6 +120,7 @@ async function runCS() {
await runCommand(buildCommand);
const command = "dotnet run --project " + CS_FILE + '/cs.csproj';
const result = await runCommand(command);
console.log(blue("Executed CS"))
return result;
}

Expand All @@ -125,6 +129,7 @@ async function runGO() {
await runCommand(buildCommand);
const command = "go run " + GO_FILE;
const result = await runCommand(command);
console.log(blue("Executed GO"))
return result;
}

Expand Down

0 comments on commit d799147

Please sign in to comment.