-
Notifications
You must be signed in to change notification settings - Fork 13
[CI] Single button press for automated Qase Test Runs #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
acae649
777acdf
43c6545
64a21cc
0d30b4c
69295d8
5a7c11f
46c471b
d9f90e7
31cebc9
e428cf8
0e6ac83
73f4309
000237a
b3fb707
8c78cba
14a1b57
535233d
07c00e6
374325f
6a35300
12ff5b2
f30389e
6a9adb8
bbfad4f
711fedd
4840222
44b44cb
590b7c5
aeca4ed
41f3477
b6adba9
88b9b5f
d894574
43af400
7c4a25b
5cc17cd
cd1182f
85e20f7
88ea136
5efb6e7
44779ef
3813d2b
22eb92d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,11 @@ | ||
| package qase | ||
|
|
||
| const ( | ||
| StatusPassed = "passed" | ||
| StatusFailed = "failed" | ||
| StatusBlocked = "blocked" | ||
| StatusSkipped = "skipped" | ||
| StatusInvalid = "invalid" | ||
| StatusError = "error" | ||
| StatusPassed = "passed" | ||
| StatusFailed = "failed" | ||
| StatusBlocked = "blocked" | ||
| StatusSkipped = "skipped" | ||
| StatusInvalid = "invalid" | ||
| StatusError = "error" | ||
| StatusExceededThresholds = "exceeded-thresholds" | ||
| ) | ||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -138,7 +138,7 @@ export function createReports(prefix, data) { | |||||||||||
| * A pre-configured `handleSummary` function that generates multiple reports. | ||||||||||||
| * | ||||||||||||
| * This function is a convenient wrapper around `createReports`. It automatically | ||||||||||||
| * determines the report filename prefix from the `K6_TEST` environment variable. | ||||||||||||
| * determines the report filename prefix from the `K6_REPORT_PREFIX` environment variable. | ||||||||||||
| * | ||||||||||||
| * To use this, import it then export it as `handleSummary`: | ||||||||||||
| * ```javascript | ||||||||||||
|
|
@@ -158,6 +158,6 @@ export function createReports(prefix, data) { | |||||||||||
| * @returns {object} An object mapping filenames to report content, for k6 to write to disk. | ||||||||||||
| */ | ||||||||||||
| export function customHandleSummary(data) { | ||||||||||||
| const prefix = __ENV.K6_TEST ? __ENV.K6_TEST.replace(/\.js$/, '') + "-" : ''; | ||||||||||||
| const prefix = __ENV.K6_REPORT_PREFIX ? __ENV.K6_REPORT_PREFIX.replace(/\.js$/, '') + "-" : ''; | ||||||||||||
|
||||||||||||
| const prefix = __ENV.K6_REPORT_PREFIX ? __ENV.K6_REPORT_PREFIX.replace(/\.js$/, '') + "-" : ''; | |
| const prefixSource = __ENV.K6_REPORT_PREFIX | |
| ? __ENV.K6_REPORT_PREFIX | |
| : (__ENV.K6_TEST ? __ENV.K6_TEST : ''); | |
| const prefix = prefixSource ? prefixSource.replace(/\.js$/, '') + "-" : ''; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import { customHandleSummary } from './k6_utils.js'; | ||
|
|
||
| const summaryPath = __ENV.K6_SUMMARY_JSON_FILE; | ||
|
|
||
| // Load summary data during initialization | ||
| let data = null; | ||
| if (summaryPath) { | ||
| try { | ||
| data = JSON.parse(open(summaryPath)); | ||
| } catch (e) { | ||
| console.error(`Failed to parse summary JSON from ${summaryPath}: ${e.message}`); | ||
| } | ||
| } | ||
|
|
||
| export function handleSummary() { | ||
| if (!data) { | ||
| console.log("No summary data available to generate reports."); | ||
| return {}; | ||
| } | ||
| return customHandleSummary(data); | ||
| } | ||
|
|
||
| export default function() {} |
Uh oh!
There was an error while loading. Please reload this page.