Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ateranimavis/mcunit
Minecraft JUnit 4 Runner
https://github.com/ateranimavis/mcunit
junit minecraft
Last synced: 23 days ago
JSON representation
Minecraft JUnit 4 Runner
- Host: GitHub
- URL: https://github.com/ateranimavis/mcunit
- Owner: AterAnimAvis
- License: other
- Created: 2020-08-30T17:14:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-19T17:42:51.000Z (over 4 years ago)
- Last Synced: 2024-10-29T06:27:51.863Z (2 months ago)
- Topics: junit, minecraft
- Language: Java
- Homepage:
- Size: 6.35 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-header.txt
Awesome Lists containing this project
README
# MCUnit
Pulled from development version of **[BlockRenderer](https://github.com/AterAnimAvis/BlockRenderer)**
For `BlockRenderer` all I really need is to access a world inside a running `Client`,
As such there's no real drivers implemented apart from `Worlds`.Most of the `Cucumber` implementation should be fairly well isolated from the pure junit.
Note: I'm temporary using `net.masterthought:cucumber-reporting` to build reports from the json but this should probably be changed.
Note: I'm only really supporting Intellij but other IDE's should work
Requires ModLauncher Spec 4+, an earlier version could be used with a couple of Hacks.
Vendors SneakyThrow which can easily be removed.
Installation / Getting Started
---
- **TODO INSTALLATION SUMMARY**Quick Start Video
![](docs/install.gif)Cucumber html report can be found in /run/target/cucumber-html-reports
How it works
--
![](docs/diagram.svg)Example
---A Sample Run with Cucumber Reporting
![](docs/example.gif)Todo List
---
- Work out when to unset the ThreadContext ClassLoader
- Cleanup after Failed Tests (Just Worlds.closeWorld()?)
- JUnit 5
- Cucumber Java8 - Should just work?
- Gradle Plugin to generate necessary runs / copy environment variables.
- More Driver Implementation