Historiquement, le front a longtemps été le parent pauvre du test. Passons sur les illustres « alert » et « console.log », il aura fallu attendre des outils comme Selenium pour professionnaliser la démarche.
Aujourd’hui les solutions sont abouties, complètes et utilisables et il y en a pour tous les goûts. Des tests unitaires, des tests d’intégrations en passant par les tests fonctionnels, les tests de compatibilités, les tests end2end…
Nous avons les outils, nous n’avons plus d’excuses.
44. THE WAY OF TESTIVUS
“If you write code, write tests.
Don’t get stuck on unit testing dogma.
Embrace unit testing karma.
Think of code and test as one.
The test is more important than the unit.
The best time to test is when the code is fresh.
Tests not run waste away.
An imperfect test today is better than a perfect test someday.
An ugly test is better than no test.
Sometimes, the test justifies the means.
Only fools use no tools.
Good tests fail.”
• http://www.agitar.com/downloads/TheWayO
fTestivus.pdf
44
45. THE WAY OF TESTIVUS
Think of code and test as one.
45
46. THE WAY OF TESTIVUS
Think of code and test as one.
The best time to test is when the code is
fresh.
46
47. THE WAY OF TESTIVUS
Think of code and test as one.
The best time to test is when the code is
fresh.
An imperfect test today is better than a
perfect test someday.
47
48. THE WAY OF TESTIVUS
Think of code and test as one.
The best time to test is when the code is
fresh.
An imperfect test today is better than a
perfect test someday.
An ugly test is better than no test.
48