Mal eine Frage in die Gemeinschaft.
Vor längerer Zeit hatte ich Mal eine Anleitung wie man in ein #Debian stable einbaut das manche (nicht alles) Pakete aus dem #Testing oder #unstable installiert werden. Mit allen Risiken ich weiß.
Leider finde ich die nicht mehr.
Hat hier jemand einen Tipp 🤔
Andy is a huge proponent of test-driven development and explains why – including types of code testing including unit tests and integration tests, when you actually need to run tests, how long they should take, and more.
@LateNightLinux I have been listening to Late Night Linux for quite a long time, excellent, the presenters have a magical working combination, this beats anything on commercial outlets, keep up the good work!
@ghickman@webology@benjaoming@bmispelon On top of the fact that if you really need or miss the factory pattern, there are Recipes within model-bakery that can do that for you as well
Why should you unit test? What should you unit test? And how much?
Today's blog post answers these questions and provides some helpful guidelines.
The post is actually a lightly edited extract of a book on unit testing that I started about 10 years ago but never finished. Still, it has aged reasonably well.
@henrikjernevad Every test you listed there is the type that should be deleted when you are done.
Which is to say you are missing something critical: to ensure when someone in the future makes a change they don't introduce bugs. Any test that will never alert you to a bug in your code by failing should not be kept. (that is about 80% of all tests, but I don't know how to figure out the difference)
🌐 Ever wished you could share your localhost web app with the world? With #VisualStudio Dev Tunnels, now you can! Check out my latest video to see how:
I think that testable code is reusable code. When you test a function, you run the code in another context than it was built for (the production code). If your code is not reusable you will feel that pain in your tests.
This blog post gives an example of how getting side effects out of functions make them both easier to test and reuse.