Debugging failed tests

This commit is contained in:
Steve Faulkner
2020-12-16 19:22:47 -06:00
parent f54e8eb692
commit ba5ab37bac
5 changed files with 6 additions and 6 deletions

View File

@@ -103,7 +103,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: screenshots
path: failed-*
path: "failed-*"
accessibility:
name: "Accessibility | Hosted"
needs: [lint, format, compile, unittest]
@@ -161,7 +161,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: screenshots
path: failed-*
path: "failed-*"
nuget:
name: Publish Nuget
if: github.ref == 'refs/heads/master' || contains(github.ref, 'hotfix/') || contains(github.ref, 'release/')

View File

@@ -120,7 +120,7 @@ describe("Collection Add and Delete Cassandra spec", () => {
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const testName = (expect as any).getState().currentTestName;
await page.screenshot({ path: `failed-${testName}.jpg` });
await page.screenshot({ path: `./failed-${testName}.jpg` });
throw error;
}
});

View File

@@ -136,7 +136,7 @@ describe("Collection Add and Delete Mongo spec", () => {
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const testName = (expect as any).getState().currentTestName;
await page.screenshot({ path: `failed-${testName}.jpg` });
await page.screenshot({ path: `./failed-${testName}.jpg` });
throw error;
}
});

View File

@@ -139,7 +139,7 @@ describe("Collection Add and Delete SQL spec", () => {
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const testName = (expect as any).getState().currentTestName;
await page.screenshot({ path: `failed-${testName}.jpg` });
await page.screenshot({ path: `./failed-${testName}.jpg` });
throw error;
}
});

View File

@@ -83,7 +83,7 @@ describe("Collection Add and Delete Tables spec", () => {
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const testName = (expect as any).getState().currentTestName;
await page.screenshot({ path: `failed-${testName}.jpg` });
await page.screenshot({ path: `./failed-${testName}.jpg` });
throw error;
}
});