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

Add pseudo-mod TEST_DATA folder and auto-load it #38945

Closed
wants to merge 1 commit into from

Conversation

wapcaplet
Copy link
Contributor

@wapcaplet wapcaplet commented Mar 22, 2020

Summary

SUMMARY: Infrastructure "Add a pseudo-mod TEST_DATA folder and auto-load it"

Purpose of change

To provide a safe "test data sandbox" for any items, materials, or other stuff used by test cases, when we wish to more strictly control the data we're testing with.

Supports #38030 and #38936

Describe the solution

Adds data/mods/TEST_DATA folder with a modinfo.json, marked as "obsolete" with an explanation, to prevent it appearing in-game.

Includes a README.md summarizing the purpose of the mod.

Describe alternatives you've considered

Considered putting test data in the main data/json folder, but that pollutes the main game with test items.

Testing

Compiled, ran some tests. Made sure game runs, and new world creation menu does not list TEST_DATA as one of the user-selectable mods.

Additional context

This feature has been hiding away in another PR waiting on O.E, but I'm wishing I had it for some other test cases as well - hence this standalone PR.

Stub in a `data/mods/TEST_DATA` folder for fake/mockup test items and
other non-game data for use by test cases.
@wapcaplet
Copy link
Contributor Author

Already merged as part of #38936 - closing this PR.

@wapcaplet wapcaplet closed this Mar 28, 2020
@wapcaplet wapcaplet deleted the test-data-mod branch March 28, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant