Minium - Jasmine

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

License

License

Categories

Categories

ASM Application Layer Libs Bytecode Manipulation
GroupId

GroupId

com.vilt-group.minium
ArtifactId

ArtifactId

minium-script-jasmine
Last Version

Last Version

0.9.6
Release Date

Release Date

Type

Type

jar
Description

Description

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

Project Organization

VILT Group

Download minium-script-jasmine

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
com.vilt-group.minium : minium-script-test jar 0.9.6
junit : junit jar 4.11

test (2)

Group / Artifact Type Version
org.assertj : assertj-core jar 1.7.0
org.mockito : mockito-core jar 1.10.8

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