-
I've been working on a testing framework so that I can write unit tests for my thermostat. Yet another phrase I never thought I'd write...
-
While the code I'm testing is JavaScript, it's JavaScript written to run on mJS (Mongoose OS's JavaScript engine). I can't just run an existing testing framework on that engine because mJS runs a subset of JavaScript and I'll probably hit issues with bits missing.
-
Originally, I started seeing if I could make the mJS code work on Node by mocking out the loader and stuff. That didn't work because of how the loader works. It has some... odd behaviours.
-
So here we are, I'm writing a testing framework and it's been interesting learning so far. I like how node-tap and tape work so they're based off that, with a few of my own opinions and some bits to account for the missing bits in mJS.
-
And it's all up on my GitHub as I'm working on it. I have no issue with working on this stuff in the open, even though I'm changing my mind on how to do stuff while I'm working on it. LukeB_UK/955580045107527682