Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of json data against game initialization test #797

Open
Cervator opened this issue Jan 2, 2014 · 0 comments
Open

Validation of json data against game initialization test #797

Cervator opened this issue Jan 2, 2014 · 0 comments
Labels
Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc.

Comments

@Cervator
Copy link
Member

Cervator commented Jan 2, 2014

It would be nice if we could run a validation test of some sort (unit test?) against module content like blocks or prefabs to verify that they actually have valid references.

Came up in a big way when we did the big extraction of stuff from engine to core while piles of modules retained their "engine:xyz" entries in blocks and prefabs. The game catches all that on initialization (and logs warnings, then continues), so we can probably catch it in some sort of initialization test.

Inter-module dependencies might be tricky, especially if we begin supporting optional module dependencies, but module solo builds in Jenkins do pull in dependency modules and make them available for compilation, while the whole engine harness is available to run unit tests depending on TerasologyTestingEnvironment (which starts up a limited game instance)

I've done terrible things with a local Groovy script to write out results in Checkstyle report format so I can show it in Jenkins. I bet we could do something similar and write out unit test reports or so

@Cervator Cervator removed this from the Logistics Arc milestone Dec 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Build/CI Requests, Issues and Changes targeting gradle, groovy, Jenkins, etc. Topic: Architecture Requests, Issues and Changes related to software architecture, programming patterns, etc.
Projects
None yet
Development

No branches or pull requests

1 participant