tags |
---|
testing, italian |
Oltre al classico gilded rose kata, io a suo tempo avevo fatto pratica con il Product-Export-Refactoring kata di Emily Bache, che è un ottimo esercizio per partire:
tags |
---|
testing, italian |
Oltre al classico gilded rose kata, io a suo tempo avevo fatto pratica con il Product-Export-Refactoring kata di Emily Bache, che è un ottimo esercizio per partire:
title | tags | disqus |
---|---|---|
What is a Unit in Unit Testing? |
testing, TDD |
pierodibello |
see the original twitter thread: https://twitter.com/christianhujer/status/1391301843683139585 by Christian Hujer
tags |
---|
testing |
Kent Beck, "XP Explained":
It is impossible to test absolutely everything, without the tests being as complicated and error-prone as the code. It is suicide to test nothing (in this sense of isolated, automatic tests). So, of all the things you can imagine testing, what should you test?
>You should test things that might break. If code is so simple that it can't possibly break, and you measure that the code in question doesn't actually break in practice, then you shouldn't write a test for it...
tags |
---|
testing |
PIT: http://pitest.org/
Example project: https://github.com/tomekkaczanowski/minimal-junit5-pitest
tags |
---|
testing |
(https://twitter.com/KentBeck/status/1253316253428543490)
Here's an exercise to discover the quality of your design as revealed by tests:
- Print a test
- Explain the scenario being tested aloud
tags |
---|
testing, mocks |
Although mocks (and spies) are useful for testing interactions and isolating code, that isolation comes at a cost. Mock-based tests are solitary tests: mocks can only check if dependencies' methods are being called. They can't check if they're being called correctly.
title | tags | disqus |
---|---|---|
Trade-offs to consider when choosing to use Mocks vs Fakes |
testing |
pierodibello |
Hi there! Today we had a nice conversation in my team around the use of mocks vs fakes in doing TDD (I'm referring to mocks and fakes as defined by Fowler and Meszaros in TestDouble).
The topic was: when should I use a mock instead of a fake, and why? What are the main trade-offs to consider when doing this kind of choice?
tags |
---|
testing, unittest,integrationtest |
https://twitter.com/jaybazuzi/status/1450474664871043084
"What ratio of unit tests to integration tests we want to strive for?" 80:20 was proposed.
tags |
---|
testing, unittest |
https://twitter.com/jbrains/status/1450572234842591236
"Unit test": a test for a unit.