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

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.
主站蜘蛛池模板: 大埔县| 五莲县| 南丰县| 晋中市| 城固县| 永川市| 定襄县| 富源县| 盘锦市| 高淳县| 呼图壁县| 和田县| 华安县| 大足县| 宣化县| 巫溪县| 南郑县| 绥棱县| 綦江县| 子长县| 德清县| 江安县| 浦县| 阿勒泰市| 社会| 襄城县| 商城县| 马关县| 千阳县| 华阴市| 瑞丽市| 凉山| 侯马市| 邯郸市| 昌图县| 运城市| 英吉沙县| 江门市| 龙井市| 蛟河市| 曲松县|