Minium - Test Commons

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

GroupId

GroupId

com.vilt-group.minium
ArtifactId

ArtifactId

minium-script-test
Last Version

Last Version

0.9.6
Release Date

Release Date

Type

Type

jar
Description

Description

Minium - Test Commons
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project Organization

Project Organization

VILT Group

Download minium-script-test

How to add to project

<!-- https://jarcasting.com/artifacts/com.vilt-group.minium/minium-script-test/ -->
<dependency>
    <groupId>com.vilt-group.minium</groupId>
    <artifactId>minium-script-test</artifactId>
    <version>0.9.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.vilt-group.minium/minium-script-test/
implementation 'com.vilt-group.minium:minium-script-test:0.9.6'
// https://jarcasting.com/artifacts/com.vilt-group.minium/minium-script-test/
implementation ("com.vilt-group.minium:minium-script-test:0.9.6")
'com.vilt-group.minium:minium-script-test:jar:0.9.6'
<dependency org="com.vilt-group.minium" name="minium-script-test" rev="0.9.6">
  <artifact name="minium-script-test" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.vilt-group.minium', module='minium-script-test', version='0.9.6')
)
libraryDependencies += "com.vilt-group.minium" % "minium-script-test" % "0.9.6"
[com.vilt-group.minium/minium-script-test "0.9.6"]

Dependencies

compile (3)

Group / Artifact Type Version
com.vilt-group.minium : minium-script jar 0.9.6
org.springframework : spring-context jar 4.1.1.RELEASE
org.springframework : spring-test jar 4.1.1.RELEASE

Project Modules

There are no modules declared in this project.

Minium - Test Framework

Minium test framework supports tests written in javascript (with Rhino) and integrated with JUnit. It is available in two flavors:

Note: Ensure chromedriver is installed and configured.

Cucumber

Cucucmber backend is very similar to Cucumber Rhino. Actually, it was adapted from there and even uses the same Javascript API.

You can create a Minium Cucumber test project with the minium-script-cucumber-archetype:

mvn archetype:generate \
  -DarchetypeGroupId=com.vilt-group.minium \
  -DarchetypeArtifactId=minium-script-cucumber-archetype \
  -DarchetypeVersion=0.9.4 \
  -DgroupId=my.archetype \
  -DartifactId=my-archetype-test \
  -Dversion=1.0-SNAPSHOT \
  -Dfeature=test_my_archetype \
  -DtestClassname=MyArchetypeTest \
  -DinteractiveMode=false

That will create a project my-archetype-test with a JUnit structure ready to run. To launch the tests:

cd my-archetype-test
mvn verify

You can then add scenarios in src/test/resources/my/archetype/test_my_archetype.feature and code for new steps in src/test/resources/my/archetype/test_my_archetype_stepdefs.js.

Jasmine

Jasmine integration with JUnit is heavily based in Jasmine JUnit Runner.

You can create a Minium Cucumber test project with minium-script-jasmine-archetype:

mvn archetype:generate \
  -DarchetypeGroupId=com.vilt-group.minium \
  -DarchetypeArtifactId=minium-script-jasmine-archetype \
  -DarchetypeVersion=0.9.4 \
  -DgroupId=my.archetype \
  -DartifactId=my-archetype-test \
  -Dversion=1.0-SNAPSHOT \
  -DspecName=test_my_archetype \
  -DtestClassname=MyArchetypeTest \
  -DinteractiveMode=false

That will create a project my-archetype-test with a JUnit structure ready to run. To launch the tests:

cd my-archetype-test
mvn verify

You can then add tests to the spec found in src/test/resources/specs/my/archetype/test_my_archetype_spec.js.

Versions

Version
0.9.6
0.9.5
0.9.4