heraspec 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/heraspec.js +5 -1
- package/bin/heraspec.js.map +2 -2
- package/package.json +1 -1
package/bin/heraspec.js
CHANGED
|
@@ -3300,9 +3300,13 @@ Test type: ${testType}`));
|
|
|
3300
3300
|
async generateTestFiles(specs, testDir, testType, projectInfo) {
|
|
3301
3301
|
const createdFiles = [];
|
|
3302
3302
|
for (const spec of specs) {
|
|
3303
|
-
const testContent = this.generateTestContent(spec, testType, projectInfo);
|
|
3304
3303
|
const testFileName = this.getTestFileName(spec.name, testType, projectInfo);
|
|
3305
3304
|
const testFilePath = path13.join(testDir, testFileName);
|
|
3305
|
+
if (await FileSystemUtils.fileExists(testFilePath)) {
|
|
3306
|
+
console.log(chalk8.yellow(` \u2139 Skipping ${path13.basename(testFilePath)} - already exists.`));
|
|
3307
|
+
continue;
|
|
3308
|
+
}
|
|
3309
|
+
const testContent = this.generateTestContent(spec, testType, projectInfo);
|
|
3306
3310
|
await FileSystemUtils.writeFile(testFilePath, testContent);
|
|
3307
3311
|
createdFiles.push(testFilePath);
|
|
3308
3312
|
}
|