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

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.
主站蜘蛛池模板: 新河县| 平昌县| 克拉玛依市| 沂源县| 盘山县| 泾阳县| 苍南县| 北海市| 汝阳县| 顺义区| 商河县| 慈利县| 府谷县| 龙泉市| 怀化市| 墨脱县| 蒙自县| 阳朔县| 衡东县| 即墨市| 安泽县| 门头沟区| 太保市| 滦南县| 临洮县| 景东| 宁安市| 巫溪县| 增城市| 新余市| 双鸭山市| 昂仁县| 临泉县| 陇南市| 广东省| 石嘴山市| 永登县| 上思县| 板桥市| 万年县| 安吉县|