gamedig / rust-gamedig

Game Server Query Library.
https://crates.io/crates/gamedig
MIT License
35 stars 10 forks source link

Move ID tests into their own crate with a CLI #177

Closed Douile closed 5 months ago

Douile commented 5 months ago

This would replace #176.

By moving the ID tests to their own crate we are able to more easily create a CLI interface for the ID tests. It also simplifies the dependencies for tests.

The CLI is currently very basic: it accepts 0 or 1 argument. If there is an argument it reads from the file at that path as JSON otherwise it reads from stdin. It expects JSON to be in the same format as the games are defined in https://github.com/gamedig/node-gamedig/tree/master/lib/games.js . And outputs only debug information (non-machine readable).

However this should be a starting point for being able to run the ID tests in node-gamedig. I will make a separate PR there incorporating this and link it here.