Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mworzala/canary
https://github.com/mworzala/canary
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mworzala/canary
- Owner: mworzala
- Created: 2021-04-11T01:44:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T10:31:21.000Z (almost 3 years ago)
- Last Synced: 2024-03-08T22:26:15.033Z (10 months ago)
- Language: Java
- Size: 837 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Canary
Canary is a way of writing tests for [Minestom](https://minestom.net/).
## Install
TODO
```
```## Usage
Example Test:
```java
public class TestEntityTest {
@InWorldTest
public void testWalkToEntity(TestEnvironment env) {
// Test that two spawned entities end up in the same location.
final var entity = env.spawnEntity(TestEntity::new, new Pos(0, 1, 0));
final var target = env.spawnEntity(TestEntity::new, new Pos(2, 1, 0));expect(entity).toBeAt(target::getPosition);
}
}```
## Contributing
PRs accepted.
## License
MIT