Skip to content

Commit

Permalink
qase-javascript-commons: release 2.0.2
Browse files Browse the repository at this point in the history
Add new step status `skipped` to the test result data.
Before this fix, the reporter didn't support the `skipped` status for test steps.
  • Loading branch information
gibiw committed May 25, 2024
1 parent 0214cbd commit 392308c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions qase-javascript-commons/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# [email protected]

## What's new

Add new step status `skipped` to the test result data.
Before this fix, the reporter didn't support the `skipped` status for test steps.

For ApiV1 the `skipped` status will be converted to `blocked` status.
For ApiV2 the `skipped` status will be converted to `skipped` status.

# [email protected]

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-javascript-commons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qase-javascript-commons",
"version": "2.0.1",
"version": "2.0.2",
"description": "Qase JS Reporters",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion qase-javascript-commons/src/models/step-execution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ export enum StepStatusEnum {
passed = 'passed',
failed = 'failed',
blocked = 'blocked',
skipped = 'skipped',
}

export interface StepExecution {
start_time: number | null;
status: StepStatusEnum;
end_time: number | null;
duration: number | null;
}
}
2 changes: 2 additions & 0 deletions qase-javascript-commons/src/reporters/testops-reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class TestOpsReporter extends AbstractReporter {
[StepStatusEnum.passed]: ResultStepStatus.PASSED,
[StepStatusEnum.failed]: ResultStepStatus.FAILED,
[StepStatusEnum.blocked]: ResultStepStatus.BLOCKED,
[StepStatusEnum.skipped]: ResultStepStatus.SKIPPED,
};

/**
Expand All @@ -89,6 +90,7 @@ export class TestOpsReporter extends AbstractReporter {
[StepStatusEnum.passed]: TestStepResultCreateStatusEnum.PASSED,
[StepStatusEnum.failed]: TestStepResultCreateStatusEnum.FAILED,
[StepStatusEnum.blocked]: TestStepResultCreateStatusEnum.BLOCKED,
[StepStatusEnum.skipped]: TestStepResultCreateStatusEnum.BLOCKED,
};

/**
Expand Down

0 comments on commit 392308c

Please sign in to comment.