assertthat-bdd 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/assertthat-bdd-report +1 -0
- data/lib/assertthat-bdd.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b36d65ebbb9b241942bf78871959da8f254fa4e1e90f27186693526f09a35e90
|
|
4
|
+
data.tar.gz: 753ec600d188310b6fea5bbc84543489b25ea7aed727e1b7735ffd8df8551775
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 453a1604b2ccf676ceae5fbe51e93129fa29f13424cfdff9ae1f8c26e2b58ff35e1fc6c6d5547e8adee0c7548a8ff6650e9417f8bbcd8713baa7e5d67376d9c3
|
|
7
|
+
data.tar.gz: 7c8176cf0a4881470a0a04c25cacdee7468a4cbd958e10017ae6f55c299976e8a29b20cea58d2e4aff951c5a5641f1976507a1ba79d7e07d614c6a27d056c9e5
|
data/bin/assertthat-bdd-report
CHANGED
|
@@ -13,6 +13,7 @@ OptionParser.new do |opt|
|
|
|
13
13
|
opt.on('-n','--runName RUN_NAME', 'The name of the run - default \'Test run dd MMM yyyy HH:mm:ss\'') { |o| options[:runName] = o }
|
|
14
14
|
opt.on('-f','--jsonReportFolder JSON_FOLDER_PATH', 'Json report folder - default ./reports') { |o| options[:mode] = o }
|
|
15
15
|
opt.on('-i','--jsonReportIncludePattern INCLUDE_REGEX', 'Regex to search for cucumber reports - default .*.json') { |o| options[:jql] = o }
|
|
16
|
+
opt.on('-j','--jql JQL_FILTER', 'Jql issues filter to update with results') { |o| options[:jql] = o }
|
|
16
17
|
opt.on('-x','--proxy PROXY_URL', 'proxy url to connect to Jira') { |o| options[:proxy] = o }
|
|
17
18
|
opt.on_tail('-h', '--help', 'Show help') do
|
|
18
19
|
puts opt
|
data/lib/assertthat-bdd.rb
CHANGED
|
@@ -43,7 +43,7 @@ module AssertThatBDD
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
class Report
|
|
46
|
-
def self.upload(accessKey: ENV['ASSERTTHAT_ACCESS_KEY'], secretKey: ENV['ASSERTTHAT_ACCESS_KEY'], projectId: nil, runName: 'Test run '+Time.now.strftime("%d %b %Y %H:%M:%S"), jsonReportFolder: './reports', jsonReportIncludePattern: '.*.json', jiraServerUrl: nil )
|
|
46
|
+
def self.upload(accessKey: ENV['ASSERTTHAT_ACCESS_KEY'], secretKey: ENV['ASSERTTHAT_ACCESS_KEY'], projectId: nil, runName: 'Test run '+Time.now.strftime("%d %b %Y %H:%M:%S"), jsonReportFolder: './reports', jsonReportIncludePattern: '.*.json', jql: nil ,jiraServerUrl: nil )
|
|
47
47
|
url = "https://bdd.assertthat.app/rest/api/1/project/" + projectId + "/report"
|
|
48
48
|
url = jiraServerUrl+"/rest/assertthat/latest/project/"+projectId+"/client/report" unless jiraServerUrl.nil?
|
|
49
49
|
files = Find.find(jsonReportFolder).grep(/#{jsonReportIncludePattern}/)
|
|
@@ -60,7 +60,7 @@ module AssertThatBDD
|
|
|
60
60
|
:multipart => true,
|
|
61
61
|
:file => File.new(f, 'rb')
|
|
62
62
|
},
|
|
63
|
-
:headers => { :params =>{:runName => runName, :runId=> runId}}
|
|
63
|
+
:headers => { :params =>{:runName => runName, :runId=> runId, :jql=> jql}}
|
|
64
64
|
)
|
|
65
65
|
begin
|
|
66
66
|
response = request.execute
|