Just Write Tests
theblackarrovv.github.io·8h·
Discuss: Hacker News
Flag this post

Just put fries in a bag, bro tests in tests folder, you’re going to need it.

Let’s me make things clear, I came from rails background, so what we call unit tests here is actually something that people often refer to as integration tests, meaning it does has a connection to the database and it does calls other classes. Another thing in which I do believe, that the way how to test is already better, than fully described in https://martinfowler.com/articles/practical-test-pyramid.html. Now that we’ve got that out of the way, let’s talk about why to test.

I’ve been working in companies with different philosophies about testing, and sometghing I would like to outline is that e2e test is cool, no doubt, but they are also heavy and brittle. It takes a lot of resources to run them, a…

Similar Posts

Loading similar posts...