Botsing gradle plugin

A gradle plugin to execute botsing using build.grade as a configuration file

License

License

Categories

Categories

Gradle Build Tools
GroupId

GroupId

eu.stamp-project
ArtifactId

ArtifactId

botsing-gradle-plugin
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Botsing gradle plugin
A gradle plugin to execute botsing using build.grade as a configuration file
Project URL

Project URL

http://github.com/stamp-project/botsing-gradle-plugin
Source Code Management

Source Code Management

https://github.com/STAMP-project/botsing-gradle-plugin

Download botsing-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/eu.stamp-project/botsing-gradle-plugin/ -->
<dependency>
    <groupId>eu.stamp-project</groupId>
    <artifactId>botsing-gradle-plugin</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/eu.stamp-project/botsing-gradle-plugin/
implementation 'eu.stamp-project:botsing-gradle-plugin:2.0.0'
// https://jarcasting.com/artifacts/eu.stamp-project/botsing-gradle-plugin/
implementation ("eu.stamp-project:botsing-gradle-plugin:2.0.0")
'eu.stamp-project:botsing-gradle-plugin:jar:2.0.0'
<dependency org="eu.stamp-project" name="botsing-gradle-plugin" rev="2.0.0">
  <artifact name="botsing-gradle-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.stamp-project', module='botsing-gradle-plugin', version='2.0.0')
)
libraryDependencies += "eu.stamp-project" % "botsing-gradle-plugin" % "2.0.0"
[eu.stamp-project/botsing-gradle-plugin "2.0.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.2

Project Modules

There are no modules declared in this project.

Gradle plugin for Botsing

Build the plugin

./gradlew build

Build the plugin for local usage

./gradlew install

Try the plugin

Example using local jar

$ ./gradlew install
$ cd example/localJar/
$ ./gradlew botsing -Plocal --info

It will generate a test from Fraction.log and Fraction_libraries.jar. The generated test can be found in the directory crash-reproduction-tests/.

Example using Maven jar

$ ./gradlew install
$ cd example/mavenJar/
$ ./gradlew botsing -Plocal --info

It will generate a test from SpaceNotFound.log and Scheduling project libraries uploaded on maven. The generated test can be found in the directory crash-reproduction-tests/.

Configure the plugin

The plugin can be configured by modifying the file example/build.gradle. For more information about parameters, check the Botsing repository.

Required parameters

  • The logPath parameter should contain the path to the log.
  • The targetFrame parameter should target the frame to reproduce. This number should be between 1 and the number of frames in the stack trace.
  • The localArtifacts or mavenArtifacts should provide the libraries that will used for the generation (i.e ["/home/user/myPath/myLibrary.jar"]. localArtifacts provide a list of path to jar files. mavenArtifacts provide a list of maven artifacts(i.e ["com.google.truth:truth:0.27"]). Using both may lead to conflict between libraries.

Optional parameters

  • The output parameter enables to choose where the output will be generated.
  • The botsingVersion parameter enables to modify the Botsing version used. The default version is 1.0.4.
  • The searchBudget parameter enables to specify an additional parameter in format.
  • The population parameter from Botsing
eu.stamp-project
Research project about software testing 2016-2019

Versions

Version
2.0.0