DEV Community

Discussion on: How I approach coding challenges

Collapse
 
craignicol profile image
Craig Nicol (he/him)

I tend not to use unit test frameworks for coding challenges because I like to keep everything in one file and that's not well supported. I tend to use equality assertions in other ways, and tend to focus on testing the given examples end-to-end as that's the only requirements given.

It's a unit of work, not a unitary module. As long as each test is independent of each other, and the environment, it's a unit test.