Ask your own question, for FREE!
Computer Science 10 Online
OpenStudy (anonymous):

What are unit tests? How do I incorporate unit-testing into my development strategy?

OpenStudy (shadowfiend):

Unit tests are essentially tests that verify the behavior of individual components of your system. How to incorporate them is up to you. One approach is Test Driven Development, which advocates building up your program by writing tests before you write the code to make them pass. The process is write a test -> watch it fail -> write just enough code to make it pass -> repeat. The idea is that this lets you build up a test suite that comprehensively covers all of the functionality of your program.

OpenStudy (llib_xoc):

I like to package the tests in a main() program (using C here) in the same source file as the code and disable them with an #ifdef...#endif pair. Then, as shadowfiend suggests, you develop the code and its unit tests in para

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Arriyanalol: i need help
1 day ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
1 day ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!