官术网_书友最值得收藏!

Smoke tests

Of course, even when all of your tests succeed, a product can still break in production. The database may be down or maybe you have a website and the web server is down. It is always important to also test whether your software is actually working in a production environment, so be sure to always do an automated smoke test after deployment that gives you fast and detailed feedback when something goes wrong. A smoke test should test whether the most important parts of your system work. A manual smoke test is fine (and I'd always manually check whether your software, at least, runs after a release), but remember it's another human action that may be forgotten or done poorly.

Some people run smoke tests before doing integration and acceptance tests. Integration and acceptance tests test an entire system and, as such, may take a bit of time. A smoke test, however, tests only basic functionality, such as does the page load? When a smoke test fails, you can skip the rest of your tests, saving you some time and giving you faster feedback.

There are many types of tests available out there. Unit tests, smoke tests, integration tests, system tests, acceptance tests, database tests, functional tests, regression tests, security tests, load tests, UI tests... it never ends! I'm pretty sure you could spend an entire year doing nothing but writing tests. Try selling that to your customer; you can't deliver any working software, but the software you can't deliver is really very well tested. Personally, I'm more pragmatic. A test should support your development process, but a test should never be a goal on its own. When you think you need a test, write a test. When you don't, don't. Unfortunately, I have seen tests that did absolutely nothing (except give you a false sense of security), but I'm guessing someone just wanted to see tests, any tests, really bad.
主站蜘蛛池模板: 尉氏县| 霸州市| 临洮县| 云阳县| 襄垣县| 福鼎市| 关岭| 太仓市| 长沙市| 英德市| 重庆市| 通化县| 麟游县| 静乐县| 娱乐| 盱眙县| 遂昌县| 新绛县| 扎兰屯市| 抚松县| 彰化市| 罗定市| 珲春市| 织金县| 土默特左旗| 潮安县| 云和县| 嫩江县| 徐水县| 堆龙德庆县| 什邡市| 于都县| 原平市| 临高县| 深州市| 浮梁县| 眉山市| 蛟河市| 阿坝| 淅川县| 牟定县|