From c4ce80353ef1be399c6167dac43101e684c362bb Mon Sep 17 00:00:00 2001 From: Christopher Dwyer-Perkins Date: Tue, 26 Mar 2024 11:46:09 -0300 Subject: [PATCH 1/3] Fixed a bug where scope validations where incomplete for node tests --- bsc-plugin/src/lib/rooibos/FileFactory.ts | 10 ++++-- bsc-plugin/src/lib/rooibos/RooibosSession.ts | 14 +++------ bsc-plugin/src/lib/rooibos/TestSuite.ts | 7 ++++- bsc-plugin/src/plugin.spec.ts | 33 +++++++++++++++++++- bsc-plugin/src/plugin.ts | 31 +++++++++++++----- 5 files changed, 74 insertions(+), 21 deletions(-) diff --git a/bsc-plugin/src/lib/rooibos/FileFactory.ts b/bsc-plugin/src/lib/rooibos/FileFactory.ts index 82ff914d..24b16c59 100644 --- a/bsc-plugin/src/lib/rooibos/FileFactory.ts +++ b/bsc-plugin/src/lib/rooibos/FileFactory.ts @@ -3,6 +3,7 @@ import { standardizePath as s } from 'brighterscript'; import * as path from 'path'; import * as fs from 'fs'; import * as fse from 'fs-extra'; +import type { TestSuite } from './TestSuite'; export class FileFactory { private coverageComponentXmlTemplate; @@ -71,10 +72,15 @@ export class FileFactory { ); } - public createTestXML(name: string, baseName: string, useBs = true): string { + public createTestXML(name: string, baseName: string, suite?: TestSuite): string { let scriptImports = []; for (let fileName of this.frameworkFileNames) { - scriptImports.push(`