-
Notifications
You must be signed in to change notification settings - Fork 14
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]
- Loading branch information
Showing
23 changed files
with
336 additions
and
120 deletions.
There are no files selected for viewing
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 |
25 changes: 25 additions & 0 deletions
25
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,25 @@ | ||
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', | ||
}, | ||
}) | ||
|
||
const browserCheck = 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
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.