Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.jbehave:jbehave-web:jbehave-web-4.0-beta-1'
}
dependencies {
implementation("com.github.jbehave:jbehave-web:jbehave-web-4.0-beta-1")
}
<dependency>
<groupId>com.github.jbehave</groupId>
<artifactId>jbehave-web</artifactId>
<version>jbehave-web-4.0-beta-1</version>
</dependency>
libraryDependencies += "com.github.jbehave" % "jbehave-web" % "jbehave-web-4.0-beta-1"
:dependencies [[com.github.jbehave/jbehave-web "jbehave-web-4.0-beta-1"]]
JBehave is a collection of extension for JBehave that extend its capabilities in ways related to HTTP and the web.
<img src="http://jbehave.org/reference/preview/images/jbehave-logo.png" alt="JBehave logo" align="right" />Canonical information for JBehave:
Please report issues, feature requests on JIRA issue tracker or discuss them on the dev mailing list.
JDK required: 1.7 (or above) Maven required (3.0 or above).
Configure IDE to use UTF-8 for all files Configure Maven by adding "-Dfile.encoding=UTF-8" to $MAVEN_OPTS
Maven is supported in Intellij IDEA out-of-the-box Maven is supported in Eclipse out-of-the-box
A regular Maven build will suffice:
mvn install
Note: profiles are additive and the default profile is always active.
mvn install -Pexamples
mvn install -Preporting,distribution
mvn release:prepare -Preporting,distribution
mvn release:perform -Preporting,distribution
See also the jbehave-core sister project for web extensions to JBehave, and jbehave-tutorial for a decent example of JBehave testing of a web application.
See LICENSE.txt in the source root (BSD).