This pilot implementation of a plugin client servers as a demo for the iv4XR testing framework, showing that iv4XR test agents can control _ Space Engineers_ (a game by Keen Software House) to perform some testing tasks.
Current API documentation is here
The project is written in Kotlin, a JVM language by JetBrains which is fully interoperable with Java, i.e., it can be used seamlessly from Java while allowing us to write less code with the same functionality.
When using Maven or Gradle build tool, you can simply add our library as a dependency from JitPack repository.
The version main-SNAPSHOT
always points to the newest main branch, which is our development branch. If you want to
target a stable release, change it to a specific version.
Check the official releases here: https://github.com/iv4xr-project/iv4xr-se-plugin/releases/
Check other possible version values (can target specific commit, branch, etc.) at JitPack here: https://jitpack.io/#iv4xr-project/iv4xr-se-plugin/
Add jitpack repository to your pom.xml
:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add the dependency:
<dependency>
<groupId>com.github.iv4xr-project</groupId>
<artifactId>iv4xr-se-plugin</artifactId>
<version>main-SNAPSHOT</version>
</dependency>
Add jitpack repository to build.gradle
:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency:
dependencies {
implementation 'com.github.iv4xr-project:iv4xr-se-plugin:main-SNAPSHOT'
}
We are using Gradle as the build system. To build the project, run the Gradle task build
:
./gradlew build
To build and run unit tests, run:
./gradlew :cleanJvmTest :jvmTest --tests "spaceEngineers.mock.*"
The tests require Space Engineers running with the iv4XR plugin enabled.
./gradlew :cleanJvmTest :jvmTest --tests "spaceEngineers.iv4xr.*"
Test scenarios also require Space Engineers running with the iv4XR plugin enabled.
For now, we run BDD tests from IDEA.
- Make sure you have
installed plugins
Gherkin
andCucumber for Java
- Right-click .feature file in IDEA and select "Run".
Eclipse does not support Kotlin multiplatform projects and so far we haven't been able to configure it to run with Kotlin JVM. We recommend using the project with JetBrains IDEA.