feat(docker): add Docker test file support and runtime adapter
This commit is contained in:
		| @@ -74,12 +74,20 @@ export class TestDirectory { | ||||
|       case TestExecutionMode.DIRECTORY: | ||||
|         // Directory mode - now recursive with ** pattern | ||||
|         const dirPath = plugins.path.join(this.cwd, this.testPath); | ||||
|         const testPattern = '**/test*.ts'; | ||||
|          | ||||
|         const testFiles = await plugins.smartfile.fs.listFileTree(dirPath, testPattern); | ||||
|          | ||||
|  | ||||
|         // Search for both TypeScript test files and Docker shell test files | ||||
|         const tsPattern = '**/test*.ts'; | ||||
|         const dockerPattern = '**/*.docker.sh'; | ||||
|  | ||||
|         const [tsFiles, dockerFiles] = await Promise.all([ | ||||
|           plugins.smartfile.fs.listFileTree(dirPath, tsPattern), | ||||
|           plugins.smartfile.fs.listFileTree(dirPath, dockerPattern), | ||||
|         ]); | ||||
|  | ||||
|         const allTestFiles = [...tsFiles, ...dockerFiles]; | ||||
|  | ||||
|         this.testfileArray = await Promise.all( | ||||
|           testFiles.map(async (filePath) => { | ||||
|           allTestFiles.map(async (filePath) => { | ||||
|             const absolutePath = plugins.path.isAbsolute(filePath) | ||||
|               ? filePath | ||||
|               : plugins.path.join(dirPath, filePath); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user