173k views
16 votes
What is unit testing? a. Checking that the integer values of a function use proper units (yards, meters, etc.) b. Ensuring a program is not one large function but rather consists of numerous smaller functions (units) c. Dividing larger function parameters into several smaller parameters known as units d. Individually testing a small part (or unit) of a program, typically a function, using a separate program called a test harness

User Coretechie
by
3.4k points

1 Answer

14 votes

Answer:

d. Individually testing a small part (or unit) of a program, typically a function, using a separate program called a test harness.

Step-by-step explanation:

A software development life cycle (SDLC) can be defined as a strategic process or methodology that defines the key steps or stages for creating and implementing high quality software applications. There are seven (7) main stages in the creation of a software and these are;

1. Planning.

2. Analysis.

3. Design.

4. Development (coding).

5. Testing.

6. Implementation and execution.

7. Maintenance.

Unit testing can be defined as a software development procedure that involves the process of individually testing a small part (or unit) of a program, typically a function, using a separate program called a test harness.

This ultimately implies that, if the observed behavior of the small part of a software program is consistent with the expectations, then the unit test is considered a pass. Otherwise, the unit test failed.

User Dty
by
3.6k points