Unit tests deep dive please!

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Makka77
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Tue May 24, 2022 10:48 am
Contact:

Unit tests deep dive please!

Post by Makka77 »

Ever since the FFF with this video...

https://www.youtube.com/watch?v=CgMV2dFFdFE

... it has haunted me. I wake up sobbing most nights. My factory has shriveled. It's all clogged up! Its seed has spoiled.

I understand the gist of what's going on, I think? Checking a new build of the game with a bunch of edge cases, previously fixed bugs, core mechanics. But I'd love a deep dive, something getting right into the meat of it, like what bug or mechanic is being tested.

I don't know how you might choose such of the many tests to focus on. Maybe a community poll? Or do any of them have a good story? A weird forum post to decipher? A simple change on the surface that took a million years to re-engineer?

Please, I want to be able to sleep again x
eugenekay
Filter Inserter
Filter Inserter
Posts: 504
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Unit tests deep dive please!

Post by eugenekay »

FFF #366 is a great read if you haven’t encountered it before. I would love to see more of the hardcore Software Engineering in a future FFF, purely because it’s cool and nerdy.

There are several Command Line Parameters which are useful for running your own “Tests” on release or Experimental builds, including: —load-game or —load-scenario, —until-tick, —benchmark, and —instrument-mod. You will probably want to have a function in your mod to save the Test Results to a script-output/file as well.
Makka77
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Tue May 24, 2022 10:48 am
Contact:

Re: Unit tests deep dive please!

Post by Makka77 »

I had a week or so when I first discovered Factorio and read every single FFF up to that point, but that was enjoyable to read again (with I don't know how many thousand hours under my belt), thank you!

I'm no coder; I'm a lowly musician, electrician, lover, and Factorio enjoyer, but I enjoy looking behind the veil. The unit test video grabbed my brain and shook it about. The speed and the specificity, the familiar graphics and dynamics doing unintelligible things (moreso even than when watching Nilaus), how every screen at every moment is firing an arrow into the heart of the game to see if it survives, this time...

I have never delved into the CLI. But then I have never even played on default settings so I may not be a typical player.

I'd love to hear more about all of it, from people who know!
Post Reply

Return to “Ideas and Suggestions”