Skip to content

Commit 9a4ee9f

Browse files
committed
Add filtering by tag
1 parent b7c2901 commit 9a4ee9f

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Available parameters:
7272
-u, --jiraServerUrl [URL] Jira server URL e.g https://mycompanyjira.com
7373
-i, --projectId <ID> Jira project id
7474
-m, --mode <mode> Features to download (default: "automated")
75+
-l, --tags <tag-expression> Cucucmber tag expression for scenarios filtering
7576
-o, --outputFolder [FOLDER PATH] Jira project id
7677
-q, --jql [JQL] JQL filter for features
7778
-x, --proxyURI [URI] Proxy URI

bin/cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ program
1515
.option('-i, --projectId <ID>', 'Jira project id')
1616
.option('-j, --jsonReportFolder [FOLDER PATH]', 'Cucumber json files folder')
1717
.option('-m, --mode <mode>', 'Features to download', /^(automated|manual|both)$/i, 'automated')
18+
.option('-l, --tags <tag-expression>', 'Cucucmber tag expression for filtering scenarios', '')
1819
.option('-n, --runName [NAME]', 'Test run name')
1920
.option('-d, --metadata [FILE PATH]', 'Metadata json file path')
2021
.option('-o, --outputFolder [FOLDER PATH]', 'Jira project id')

lib/assertthat-bdd.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ var downloadFeatures = function(settings, callback) {
2626
if(settings.mode){
2727
req.query({ mode: settings.mode })
2828
}
29+
if(settings.tags){
30+
req.query({ tags: settings.tags })
31+
}
2932
req.auth(settings.accessKey, settings.secretKey)
3033
.on('error', function(error) {
3134
console.log(error);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@assertthat/assertthat-bdd",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"description": "Node.js module for integration with AssertThat BDD Jira plugin",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)