3 ms·
I'd also advise to maintain a proper test coverage, it's even more important than in your main job in my opinion. You will have gaps where you will not be able
by realusername 2y ago
I'd also advise to maintain a proper test coverage, it's even more important than in your main job in my opinion.
You will have gaps where you will not be able to work on it and having proper tests is making sure that you can come back to it.
- eythian 2y agoIn addition, I've started writing failing (or empty, in the framework I'm using empty fails) tests as a todo for the next time I pick it up, so by generally keeping the tests passing I know what I was intending my next step to be when I last worked on it a week ago.
- Buttons840 2y agoI feel there's a good universal principle underneath the advice to write tests and have good test coverage, but there are lots of situations where tests are not an option. I'm working on a shader for a video game, any advice on how I can write some tests for it?
- realusername 2y agoI'm less familiar with video games but I'm sure there's tests you could make with shaders. You could test that the shader compiles properly, you could render it to an image and compare the result, give it different parameters and see how it behaves...