there are things you need to test for to get test coverage
2014-04-01 22:12
591 查看
Function coverage – has each function been tested?
Statement coverage – has each node in the program been executed?
Decision coverage – has each edge in the program been executed? (IF and CASE
statements)
Condition coverage – has each Boolean sub-expression evaluated both to true and false?
Parameter value coverage – Has the most common parameter values been tested?
Loop coverage – Has every loop executed zero times, once, and more than once?
Boundary testing – Test for range boundaries. If an integer variable can be between one and
ten, then test the following values: 0, 1, 2, 9, 10, and 11.
I am so smart I can implement this without test driving it
I don’t know how to write tests
This is a really small change, no need for tests
This cannot break anything
I’m in a rush, no time for TDD
I wanted to write tests, but I didn’t :-)
It’d be too hard to test this mess
TDD’s not a silver bullet. With or without it, doesn’t matter
I’m prototyping
I’ll do the real work, then you can play around with your tests
Statement coverage – has each node in the program been executed?
Decision coverage – has each edge in the program been executed? (IF and CASE
statements)
Condition coverage – has each Boolean sub-expression evaluated both to true and false?
Parameter value coverage – Has the most common parameter values been tested?
Loop coverage – Has every loop executed zero times, once, and more than once?
Boundary testing – Test for range boundaries. If an integer variable can be between one and
ten, then test the following values: 0, 1, 2, 9, 10, and 11.
I am so smart I can implement this without test driving it
I don’t know how to write tests
This is a really small change, no need for tests
This cannot break anything
I’m in a rush, no time for TDD
I wanted to write tests, but I didn’t :-)
It’d be too hard to test this mess
TDD’s not a silver bullet. With or without it, doesn’t matter
I’m prototyping
I’ll do the real work, then you can play around with your tests
相关文章推荐
- Are you looking for a way to get the entire text of a word document into a RichEdit without using the Clipboard?
- Unable to get package info for com.example.sampletest; is package not installed?
- Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- Things you need to remember to become a successful developer
- Plan for apps for SharePoint 2013(You need to ensure that users can install apps from the App Catal)
- 【Windows Phones 7】Ready for take-off? Top 10 things to check when you think you are done with your application.
- You need to install a terminal library; for example ncurses.
- nb developer faq - What are the basic things I should know about NetBeans' architecture to get started?
- Things you need to remember to become a successful developer
- Two things need to note for unpack in Perl
- 使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes
- Searching with regular sentences will only get you so far – if you need to find something a bit tricky turn to these advanced yet simple methods--转
- How to do code coverage test for windows service
- Name for parameter binding must not be null or empty! On JDKs < 8, you need to use @Param for named
- Top 10 Things You Need to Know in java 6 beta 2
- There is no tracking information for the current branch.If you wish to set tracking information for
- After logging in to the Lotus Notes Client, you are prompted for a password in DOS-like window (Viru
- VS.NET 2003 Error - The project you are trying to open is a Web project. You need to open it by specifying its URL path.
- 93.You are using flat files as the data source for one of your data warehousing applications. To opt
- 22.You need to create a table for a banking application. One of the columns in the table has the fol