Leaqio.com
colugomusic from patreon
colugomusic patreon

Blockhead v0.33.2 alpha

🕑 Added 2024-01-31 14:49:51 +0000 UTC

Comments

Simon Break

I've done a fair bit of testing UI-heavy code (specifically for embedded code in devices with screens) and by far the best way (IMO) to do it is to use a message-based architecture with a central bus connecting the core logic to the UI, with the UI being as dumb as possible. Then you can test by simply recording the stream of messages in and out to a text log. At that point your test suite is just a bunch of recorded message streams which you "play back" into the core, comparing the returned values to the ones you got previously. You can even send text logs over the internet to remotely reproduce bugs.

Gearmo 3DS

Fair enough! I also only do it only for parts where I need extra confidence to not overburden myself with the extra effort and maintenance that comes with it.

Colugo Music

i dont test anything thats why everything is so buggy and terrible

Gearmo 3DS

Hey, I wanted to ask you this: How do you go about testing - do you use a unit-testing framework for C++? I use doctest, which seems great. But what about bugs which happen in circumstances that require the user to have traversed a certain path (open a file, go to a certain menu etc.) in order to reproduce a crash? I have been thinking for that you would probably need a way to record and replay user events to avoid doing all that manually every time.


More Creators