Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
0da1a1bc5b | |||
1ede0b476a | |||
1d251689bb | |||
8f1492dfbd |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tstest",
|
"name": "@gitzone/tstest",
|
||||||
"version": "1.0.47",
|
"version": "1.0.49",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tstest",
|
"name": "@gitzone/tstest",
|
||||||
"version": "1.0.47",
|
"version": "1.0.49",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a test utility to run tests that match test/**/*.ts",
|
"description": "a test utility to run tests that match test/**/*.ts",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -38,6 +38,11 @@ export class TsTest {
|
|||||||
const tapCombinator = new TapCombinator(); // lets create the TapCombinator
|
const tapCombinator = new TapCombinator(); // lets create the TapCombinator
|
||||||
for (const fileNameArg of fileNamesToRun) {
|
for (const fileNameArg of fileNamesToRun) {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
|
case process.env.CI && fileNameArg.includes('.nonci.'):
|
||||||
|
console.log('!!!!!!!!!!!');
|
||||||
|
console.log(`not running testfile ${fileNameArg}, sinc we are CI and file name includes '.nonci.' tag`);
|
||||||
|
console.log('!!!!!!!!!!!');
|
||||||
|
break;
|
||||||
case fileNameArg.endsWith('.browser.ts'):
|
case fileNameArg.endsWith('.browser.ts'):
|
||||||
const tapParserBrowser = await this.runInChrome(fileNameArg);
|
const tapParserBrowser = await this.runInChrome(fileNameArg);
|
||||||
tapCombinator.addTapParser(tapParserBrowser);
|
tapCombinator.addTapParser(tapParserBrowser);
|
||||||
@ -50,7 +55,7 @@ export class TsTest {
|
|||||||
console.log(''); // force new line
|
console.log(''); // force new line
|
||||||
console.log('>>>>>>> TEST PART 2: node');
|
console.log('>>>>>>> TEST PART 2: node');
|
||||||
const tapParserBothNode = await this.runInNode(fileNameArg);
|
const tapParserBothNode = await this.runInNode(fileNameArg);
|
||||||
tapCombinator.addTapParser(tapParserBothBrowser);
|
tapCombinator.addTapParser(tapParserBothNode);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
const tapParserNode = await this.runInNode(fileNameArg);
|
const tapParserNode = await this.runInNode(fileNameArg);
|
||||||
|
Reference in New Issue
Block a user