rdw-archive / WebClient

[Proof of Concept] Browser-based client capable of rendering networked multiplayer games using modern web technologies
1 stars 0 forks source link

Automated tests aren't working on the Ubuntu VM #78

Closed rdw-software closed 3 years ago

rdw-software commented 3 years ago

Segfault. No idea why, no idea how to debug this on the GitHub VM either TBH.

Since the tests are supposed to cover application/domain logic only, the OS *shouldn't matter too much. For that reason, I've disabled the test for Ubuntu until I can find a way to make it work.

This is obviously less than ideal, but shouldn't really stand in the way of building more features. The last thing I need right now is a deep dive in to the Unix world :weary:

rdw-software commented 3 years ago

Taking another stab at this, as it personally annoys me.

rdw-software commented 3 years ago

Looks like a display-related issue, with electron (not electron-mocha). Got around it via SSH (tmate debug sessions) as follows:

export DISPLAY=:45 && xvfb-run --server-num 45 "electron-mocha" Tests

Now all that's left is finding a way to run this abomination ONLY on the Ubuntu VM.