simondotm / beeb-vsc

Visual Studio Code Extension to support code development for BBC Micro
https://marketplace.visualstudio.com/items?itemName=simondotm.beeb-vsc
MIT License
13 stars 3 forks source link

chore: Run e2e in CI #118

Closed simondotm closed 4 months ago

simondotm commented 4 months ago

Reminds me that I should break the CI out into separate jobs for build/lint/test

tommy9 commented 4 months ago

Doing a bit of searching around the error message, I came across mention of the X virtual frame buffer (xvfb) tool. There are a few example on GitHub https://github.com/search?q=ci.yml+Xvfb+path%3A%2F%5E.github%5C%2Fworkflows%5C%2F%2F&type=code&p=1 although not exactly matching. It might be as simple as prepending xvfb-run before the test task i.e. xvfb-run npm run e2e, although some of the examples do sudo apt-get install xvfb so perhaps that is needed too.

simondotm commented 4 months ago

@tommy9 great scott! It worked 🎩 🧙

tommy9 commented 4 months ago

That's awesome! Really nice to have. I need to make more tests now 😀

I can run the server unit tests too, will just need to clear out the copious amounts of console logging I left in for debugging purposes then will try to add to the CI.