Make sure to test that the test breaks when you unfix the bug.
Web Development
Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development
What is web development?
Web development is the process of creating websites or web applications
Rules/Guidelines
- Follow the programming.dev site rules
- Keep content related to web development
- If what you're posting relates to one of the related communities, crosspost it into there to help them grow
- If youre posting an article older than two years put the year it was made in brackets after the title
Related Communities
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
Wormhole
Some webdev blogs
Not sure what to post in here? Want some web development related things to read?
Heres a couple blogs that have web development related content
- https://frontendfoc.us/ - [RSS]
- https://wesbos.com/blog
- https://davidwalsh.name/ - [RSS]
- https://www.nngroup.com/articles/
- https://sia.codes/posts/ - [RSS]
- https://www.smashingmagazine.com/ - [RSS]
- https://www.bennadel.com/ - [RSS]
- https://web.dev/ - [RSS]
- TDD (red-green-refactor)
- Dependency injection
- Focusing/skipping tests
- Minimize stubbing (only stub when you have to, and stub closest to the edge of the system)
- Use rollback or other data cleanup strategy. Ensure tests don't leave data leftovers.
- Test the behavior, not the implementation. Don't stub and spy so much that refractors to the source code with an equivalent implementation break the test or require extensive refractors to pass again.
That the spec was changing tomorrow because the head of product changed his mind again. ;)
But you will be glad for every non affected test, because the ensure nothing else breaks when you fulfil the whims of PM.
I love having tests
Except for those that are too coupled. Or those that pass because the response of the class you changed was stubbed in that other test.
I love tests too by the way. Just many things I'm still not sure how to test properly. Always struggling with the borders between integration and isolation.