Today I Learned - Rocky Kev

TIL ELI5 for Smoke Testing

POSTED ON:

TAGS:

tl;dr -

via Marko Kruljac:

For your upcoming birthday, you ask your parents to buy you a Lego 1989 Batmobile.

The day finally arrives, and you are presented with a wrapped package, but they don't tell you what's inside. It is a surprise.

Your excitement rises, but before you get your hopes up - you examine the package.

1 - Judging by the shape and size of the package, it matches the size of the 3306 piece box for the Lego 1989 Batmobile. Smoke test 1 passed.

2 - You take the present in your hand and feel its weight. Its not too heavy, not too light. Just about right for a box of Lego. Smoke test 2, passed.

3 - You decide to give it one final test before calling it. You shake the box and hear the familiar sound of Lego inside. Smoke test 3, passed!

Now you are fairly confident that the present is some kind of Lego, but you cannot really be sure if it is the Batmobile, so you start with user acceptance testing, unwrapping the present and validating the contents of the box.

Had any of the smoke tests failed, you would have immediately known that the present is not what you asked for, without investing time in detailed testing.

via Jean-Michel Fayard's Best of #explainlikeimfive


Related TILs

Tagged:

TIL Scoping with Cypress

So you wanted to find a specific element called `heading`. But you have a BUNCH of elements called `heading`. By using `within()` helper, you can force it to only look inside `main` elements.

TIL MSW for mocking

MSW is a API mocking tool. Mock by intercepting requests on the network level. Seamlessly reuse the same mock definition for testing, development, and debugging.

TIL writing a clean function

Write an assert at the beginning of the function. Then, write down all the conditions that must be met.