Summary:
I would like to automate the tests for my mod using github actions and also locally.
Therefor I need to be able to launch the game with my mods and validate that they are still working after my commit.
-----------------------
Details
I am a software developer myself and I feel unsafe if there are no automatic tests.
Therefore I would like to launch the game/headless server multiple times with different mod-sets to ensure they work well together.
IIRC in one of the FFFs you mentioned your test suites, but I couldn't find any command line parameters that allows me to run the tests and exit.
Or one a more simplistic level: Only validate the data (+images+translations)
https://wiki.factorio.com/Command_line_parameters
Maybe something like this:
./factorio --mod-directory=only-my-mod --check-unused-prototype-data --validate-and-exit --ensure-locale=en,de,fr
./factorio --mod-directory=test-set1 --validate-and-exit
--validate-and-exit:
Validates that all prototypes are valid and could be loaded by the game.
Also checks the presence of the images that are referenced in the data.
If all data/prototypes could be read the game will exit with errorcode 0,
if one or more data/prototype is broken the game will exit with errorcode 1
--ensure-locale=[Languages]
A comma separated list of languages, that should be checked for their locale completness.
If validate-and-exit is set and a locale entry is missing, then the game will exit with errorcode 2.
--check-unused-prototype-data
[...]
If validate-and-exit is set and there is an unused prototype-data, then the game will exit with errorcode 3.
Add "test" option/mode to headless server
Post your ideas and suggestions how to improve the game.
Moderator: ickputzdirwech
-
- Fast Inserter
- Posts: 194
- Joined: Sat Apr 23, 2016 7:11 am
- Contact:
Return to “Ideas and Suggestions”
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Implemented in 2.0
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions