Skip to content

Commit

Permalink
Merge pull request #10 from prashanth-sams/upload
Browse files Browse the repository at this point in the history
fix: Fixed the bump version issue and added doc
  • Loading branch information
prashanth-sams authored Sep 30, 2024
2 parents 9b08a1e + dfdbfb2 commit a05b0b0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ Scenario: [PRO-TC-1] [PRO-TC-2] User logs in with valid credentials
```

#### Cucumber Hooks

#### Case #1 Open API

##### Hooks.ts
```
import { updateQmetryStatus } from "qmetry-cucumber";
Expand All @@ -94,6 +98,18 @@ After(async function ({ pickle, result }){
});
```

#### Case #2 Automation API

##### Hooks.ts
```
import { sendTestResultToQmetry } from "qmetry-cucumber";
AfterAll(async function (){
await browser.close();
sendTestResultToQmetry(process.cwd() + '/test-result/reports/cucumber-report.json');
});
```

## Test
```
cd tests/ && npm test
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qmetry-cucumber",
"version": "1.2.0",
"version": "1.2.1",
"description": "Sync cucumber automation test results with Qmetry Test Cycle",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const config = {
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
"@semantic-release/npm",
'@semantic-release/github',
['@semantic-release/git', {
assets: ['dist/*', 'package.json', 'LICENSE', 'README.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}]
}],
"@semantic-release/npm"
]
};

Expand Down

0 comments on commit a05b0b0

Please sign in to comment.