-
Notifications
You must be signed in to change notification settings - Fork 1k
(Also) Run test harness in-process #510
Comments
Another plus side of in-proc tests is easier debugging. When it spawns a separate process, I end up having to put in lots of temporary debug statements. 😀 Or maybe I just need to level up my debugger-fu. |
Sure seems like another benefit to me 😄 /me confesses to not using a step-through debugger (in Go) 😝 |
I only use delve in anger. 😇 |
I can work on this issue. |
@jmank88 aaaaawesome!! yes, your survey of the code matches with my sense of what we'd need to do - a bunch more encapsulation to get rid of the global state. That's some tech debt I would LOVE to pay down. Once that's done, I suspect the rest oughtn't be that hard. Even better, it'll likely force us to maintain a higher level of quality/avoid global state in the future! 🎉 |
Right now, the test harness is executed out-of-process by compiling an instance of dep and
Exec()
ing it. It'd be lovely if we could also make it work in-process, by mocking up the commands as needed and just calling them directly.Doing this would provide us with proper code coverage information. While I'm not a coverage zealot, I do think it's very valuable for us to at least know which parts of our code are covered by tests, and which aren't.
If there's a way to get coverage information from the subprocess, though, I'm probably fine with that, too.
The text was updated successfully, but these errors were encountered: