assertthat-bdd-gradle-tasks

AssertThat BDD Jira gradle plugin

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

com.assertthat.plugins
ArtifactId

ArtifactId

assertthat-bdd-gradle-tasks
Last Version

Last Version

1.6
Release Date

Release Date

Type

Type

jar
Description

Description

assertthat-bdd-gradle-tasks
AssertThat BDD Jira gradle plugin
Project URL

Project URL

https://github.com/assertthat/assertthat-bdd-gradle-tasks
Source Code Management

Source Code Management

https://github.com/assertthat/assertthat-bdd-gradle-tasks/

Download assertthat-bdd-gradle-tasks

How to add to project

<!-- https://jarcasting.com/artifacts/com.assertthat.plugins/assertthat-bdd-gradle-tasks/ -->
<dependency>
    <groupId>com.assertthat.plugins</groupId>
    <artifactId>assertthat-bdd-gradle-tasks</artifactId>
    <version>1.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.assertthat.plugins/assertthat-bdd-gradle-tasks/
implementation 'com.assertthat.plugins:assertthat-bdd-gradle-tasks:1.6'
// https://jarcasting.com/artifacts/com.assertthat.plugins/assertthat-bdd-gradle-tasks/
implementation ("com.assertthat.plugins:assertthat-bdd-gradle-tasks:1.6")
'com.assertthat.plugins:assertthat-bdd-gradle-tasks:jar:1.6'
<dependency org="com.assertthat.plugins" name="assertthat-bdd-gradle-tasks" rev="1.6">
  <artifact name="assertthat-bdd-gradle-tasks" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.assertthat.plugins', module='assertthat-bdd-gradle-tasks', version='1.6')
)
libraryDependencies += "com.assertthat.plugins" % "assertthat-bdd-gradle-tasks" % "1.6"
[com.assertthat.plugins/assertthat-bdd-gradle-tasks "1.6"]

Dependencies

compile (1)

Group / Artifact Type Version
com.assertthat.plugins : assertthat-bdd-standalone jar 1.9.3

Project Modules

There are no modules declared in this project.

Build Status Maven Central

Description

Gradle plugin for interaction with AssertThat BDD Jira plugin.

Main features are:

  • Download feature files before test run
  • Filter features to download based on mode (automated/manual/both), or/and JQL
  • Upload cucumber json after the run to AsserTthat Jira plugin

Installation

Full plugin configuration below, optional properties can be omitted

buildscript {
    dependencies{
        classpath group: 'com.assertthat.plugins', name: 'assertthat-bdd-gradle-tasks', version: '1.6'
    }
}

task downloadFeatures(type: FeaturesTask){
    /*Jira project id e.g. 10001*/
    projectId ="PROJECT_ID"
    /*Optional can be supplied as environment variable ASSERTTHAT_ACCESS_KEY*/
    accessKey = "ASSERTTHAT_ACCESS_KEY"
    /*Optional can be supplied as environment variable ASSERTTHAT_SECRET_KEY*/
    secretKey = "ASSERTTHAT_SECRET_KEY"
    /*Used for jira server integration only. If using cloud remove this option*/
    jiraServerUrl = "http://mycompanyjira.com"
    /*Optional - default ./features*/
    outputFolder = "src/test/resources"
    /*Optional - all features downloaded by default - should be a valid JQL*/
    jql = "project = XX AND key in ('XXX-1')"
    /*Optional - default automated (can be one of: manual/automated/both)*/
    mode = "automated"
    /*Optional - tag expression filter for scenarios. More on tag expressions https://cucumber.io/docs/cucumber/api/#tag-expressions*/
    tags = "(@smoke or @ui) and (not @slow)"
    /*Optional - the value MUST be an instance of {@link String} or {@link java.net.URI}.*/
    proxyURI = "myproxy:8080"
    /*Optional - user name which will be used for proxy authentication.*/
    proxyUsername = "username"
    /*Optional - password which will be used for proxy authentication.*/
    proxyPassword = "password"
    /*Optional - prepend ordinal to feature name (default is true)*/   
    numbered = false

}

task submitReport(type: ReportTask){
    /*Jira project id e.g. 10001*/
    projectId ="PROJECT_ID"
    /*Optional can be supplied as environment variable ASSERTTHAT_ACCESS_KEY*/
    accessKey = "ASSERTTHAT_ACCESS_KEY"
    /*Optional can be supplied as environment variable ASSERTTHAT_SECRET_KEY*/
    secretKey = "ASSERTTHAT_SECRET_KEY"
    /*Used for jira server integration only. If using cloud remove this option*/
    jiraServerUrl = "http://mycompanyjira.com"    
    /*The name of the run - default 'Test run dd MMM yyyy HH:mm:ss'*/
    runName = "Dry Tests Run"
    /*Json report folder - default ./reports*/
    jsonReportFolder = "reports"
    /*Regex to search for cucumber reports - default **.json*/
    jsonReportIncludePattern = "**/cucumber.json"
    /*Optional - the value MUST be an instance of {@link String} or {@link java.net.URI}.*/
    proxyURI = "myproxy:8080"
    /*Optional - user name which will be used for proxy authentication.*/
    proxyUsername = "username"
    /*Optional - password which will be used for proxy authentication.*/
    proxyPassword = "password"
    /*Optional - default cucumber (can be one of: cucumber/karate)*/
    type = "cucumber"
    /*Optional - Run metadata */
    metadata="""{"env ":"uat ","build":"456"}"""
}

Example project

Refer to example project assertthat-bdd-gradle-example

com.assertthat.plugins

AssertThat

Versions

Version
1.6
1.5
1.4
1.3
1.1