Skip to content

Commit f0cc1de

Browse files
committed
Add karate support
1 parent 823b4be commit f0cc1de

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/main/java/com/assertthat/FeaturesMojo.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ public class FeaturesMojo extends AbstractMojo {
7171
private String mode;
7272
@Parameter(property = "jql")
7373
private String jql;
74+
@Parameter(property = "type")
75+
private String type;
76+
77+
public String getType() {
78+
return type;
79+
}
80+
81+
public void setType(String type) {
82+
this.type = type;
83+
}
7484

7585
public String getMode() {
7686
return mode;
@@ -182,7 +192,8 @@ public void execute()
182192
proxyUsername,
183193
proxyPassword,
184194
mode,
185-
jql
195+
jql,
196+
type
186197
);
187198

188199
APIUtil apiUtil = new APIUtil(arguments.getProjectId(), arguments.getAccessKey(), arguments.getSecretKey(), arguments.getProxyURI(), arguments.getProxyUsername(), arguments.getProxyPassword());

src/main/java/com/assertthat/ReportMojo.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ public void execute()
192192
proxyUsername,
193193
proxyPassword,
194194
mode,
195-
jql
195+
jql,
196+
type
196197
);
197198

198199
APIUtil apiUtil = new APIUtil(arguments.getProjectId(), arguments.getAccessKey(), arguments.getSecretKey(), arguments.getProxyURI(), arguments.getProxyUsername(), arguments.getProxyPassword());
@@ -201,7 +202,7 @@ public void execute()
201202
Long runid = -1L;
202203
for (String f : files) {
203204
try {
204-
runid = apiUtil.upload(runid, arguments.getRunName(), arguments.getJsonReportFolder() + f);
205+
runid = apiUtil.upload(runid, arguments.getRunName(), arguments.getJsonReportFolder() + f, arguments.getType());
205206
} catch (IOException e) {
206207
throw new MojoExecutionException("Failed to upload report", e);
207208
} catch (JSONException e) {

0 commit comments

Comments
 (0)