GDX Testing

Classes to test libgdx

License

License

Harium Commercial License
GroupId

GroupId

com.harium.gdx
ArtifactId

ArtifactId

test
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

GDX Testing
Classes to test libgdx

Download test

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-all jar 1.10.19

provided (1)

Group / Artifact Type Version
com.badlogicgames.gdx : gdx-freetype Optional jar [1.9.9,)

Project Modules

There are no modules declared in this project.

gdx-testing

This is a library to enable unit tests in libGDX projects which require testing with JUnit and Mockito.

Maven

<dependency>
    <groupId>com.harium.gdx</groupId>
    <artifactId>test</artifactId>
    <version>1.0.0</version>
    <scope>test</scope>
</dependency>

Gradle

testImplementation 'com.harium.gdx:test:1.0.0'

Configuration

Whenever you require a headless libGDX environment for your tests to pass, copy the tests/src/de/tomgrill/gdxtesting/GdxTestRunner.java file to your tests project and annotate your test class with:

@RunWith(GdxTestRunner.class)
public class MySuperTestClass {
	@Test
	public void bestTestInHistory() {
	
	}
}

Happy testing!

License

The gdx-testing project is licensed under the Apache 2 License, meaning you can use it free of charge, without strings attached in commercial and non-commercial projects.

Source & inspired by

http://shahmirj.com/blog/getting-junit-working-with-libgdx-in-gradle

http://badlogicgames.com/forum/viewtopic.php?f=17&t=1485

com.harium.gdx

Harium

Versions

Version
1.0.0