Minium - Cucumber Rhino Archetype

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

License

License

Categories

Categories

Cucumber Application Testing & Monitoring
GroupId

GroupId

com.vilt-group.minium
ArtifactId

ArtifactId

minium-script-cucumber-archetype
Last Version

Last Version

0.9.6
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project Organization

VILT Group

Download minium-script-cucumber-archetype

How to add to project

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

Dependencies

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.apache.maven.shared : maven-verifier jar 1.5

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