-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for test retries [sc-20570] (#952)
- Loading branch information
Showing
24 changed files
with
355 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/cli/e2e/__tests__/fixtures/retry-project/checkly.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { defineConfig } from 'checkly' | ||
|
||
const config = defineConfig({ | ||
projectName: 'Test Project', | ||
logicalId: 'test-project', | ||
repoUrl: 'https://github.com/checkly/checkly-cli', | ||
checks: { | ||
locations: ['us-east-1', 'eu-west-1'], | ||
tags: ['mac'], | ||
runtimeId: '2023.09', | ||
checkMatch: '**/*.check.ts', | ||
browserChecks: { | ||
// using .test.ts suffix (no .spec.ts) to avoid '@playwright/test not found error' when Jest transpile the spec.ts | ||
testMatch: '**/__checks__/*.test.ts', | ||
}, | ||
}, | ||
cli: { | ||
runLocation: 'us-east-1', | ||
}, | ||
}) | ||
|
||
export default config |
26 changes: 26 additions & 0 deletions
26
packages/cli/e2e/__tests__/fixtures/retry-project/src/__checks__/group.check.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable no-new */ | ||
import { CheckGroup, BrowserCheck } from 'checkly/constructs' | ||
|
||
const group = new CheckGroup('check-group-1', { | ||
name: 'Group', | ||
activated: true, | ||
muted: false, | ||
locations: ['us-east-1', 'eu-west-1'], | ||
tags: ['mac', 'group'], | ||
environmentVariables: [], | ||
apiCheckDefaults: {}, | ||
alertChannels: [], | ||
browserChecks: { | ||
// using .test.ts suffix (no .spec.ts) to avoid '@playwright/test not found error' when Jest transpile the spec.ts | ||
testMatch: '**/*.test.ts', | ||
}, | ||
}) | ||
|
||
new BrowserCheck('group-browser-check-1', { | ||
name: 'Check with group', | ||
activated: false, | ||
groupId: group.ref(), | ||
code: { | ||
content: 'throw new Error("Failing Check Result")', | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.