Lädt...

🔧 What Our Tests Don’t Like About Our Code


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dzone.com

When you start writing tests for your code, you'll likely have the feeling — bloody hell, how do I drag this thing into a test? There is code that tests clearly like and code they don't. Apart from checking the correctness of our code, tests also give us hints about how to write it. And it's a good idea to listen.

A test executes your code in the simplest possible setting, independent of the larger system it's part of. But if the simplest possible setting is how it's run in our app, and it's impossible to tease out the individual pieces — that's a bad sign. If we're saying — nah, we don't need tests. All the code is already executed in the app — that's a sign that we've created a large slab that is hard to change and maintain. As Uncle Bob put it: "Another word for testable is decoupled."

...

🔧 What Our Tests Don’t Like About Our Code


📈 39.07 Punkte
🔧 Programmierung

🔧 try yaps.chat - "Don't be like Bezos. Own your gf. Don't let Zuck to cook smth".


📈 21.28 Punkte
🔧 Programmierung

📰 Don’t Take Our Word for It – Listen to Our Customers


📈 20.45 Punkte
📰 IT Security Nachrichten

🐧 My first impressions on Linux. What I like and don't like.


📈 20.11 Punkte
🐧 Linux Tipps

🪟 I feel like it's intentional to make using Microsoft 365 in Google Chrome harder, and I don't like it


📈 20.11 Punkte
🪟 Windows Tipps

📰 Delta just made employees feel like average customers and they really don't like it


📈 20.11 Punkte
📰 IT Nachrichten

📰 Public sector cyber break-ins: Our money, our lives, our right to know


📈 19.44 Punkte
📰 IT Security Nachrichten

🐧 How we ran a Unix-like OS (Xv6) on our home-built CPU with our home-built C compiler


📈 19.27 Punkte
🐧 Linux Tipps

📰 New soft robots roll like tires, spin like tops and orbit like moons


📈 18.93 Punkte
🔧 AI Nachrichten

🔧 Don't copy/paste code you don't understand


📈 18.36 Punkte
🔧 Programmierung

🔧 How to Write Unit Tests and E2E Tests for NestJS Applications


📈 17.85 Punkte
🔧 Programmierung

🔧 Automated Tests | How to unit tests with PHPUnit


📈 17.85 Punkte
🔧 Programmierung

🔧 The Test Drama: Cypress vs Playwright - Control Your Tests (Part 1): ANNOTATIONS & GROUP TESTS


📈 17.85 Punkte
🔧 Programmierung

🔧 How to write unit tests and E2E tests for NestJS applications


📈 17.85 Punkte
🔧 Programmierung

🔧 Unit tests and integration tests. Things I feared most when I studied.


📈 17.85 Punkte
🔧 Programmierung

🔧 Testing in Rust: A Quick Guide to Unit Tests, Integration Tests, and Benchmarks


📈 17.85 Punkte
🔧 Programmierung

🔧 JUnit Tests in Java: A Guide to Writing Effective Unit Tests


📈 17.85 Punkte
🔧 Programmierung

🕵️ Etherpad Frontend Tests up to 1.6.0 tests.js directory traversal


📈 17.85 Punkte
🕵️ Sicherheitslücken

🕵️ Etherpad Frontend Tests bis 1.6.0 tests.js Directory Traversal


📈 17.85 Punkte
🕵️ Sicherheitslücken

🔧 Essential Do's and Don'ts in Next.js: Code Like a Pro and Avoid Common Pitfalls!


📈 17.18 Punkte
🔧 Programmierung