Unit Test With GoogleTest Activity

From Foss2Serve
Revision as of 06:12, 1 August 2016 by Kevin.buffardi (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Title

Unit Test with Google Test

Overview

Participants install the Google Test library and run an existing C++ project to see individual test results and confirm successful installation.

Prerequisite Knowledge

Have set up a development environment that will compile C++. Configurations differ slightly from one operating system to another, but should work on most.

Learning Objectives

Participant should be able to learn how to configure a unit testing framework and read and interpret unit test results.

Directions:

Students:

Template:Unbulleted list

Deliverables:

A screen shot of the automated test results.

Assessment:

Students should have a screen shot of GoogleTest results that show that a test has been run and passed in command line output.

Comments:

Additional Information:

Knowledge Area/Knowledge Unit

Softward Engineering

Topic

Unit Testing

Level of Difficulty

Configuring the development environment with the GoogleTest library takes intermediate expertise of operating system command-line navigation

Estimated Time to Completion

Download and configuration may take 5 to 20 minutes, depending on the students' operating systems and existing development environment.

Materials/Environment

Need a development environment with support for Makefile and C++ compilation (g++ recommended)

Author

Kevin Buffardi

Source

Kevin Buffardi

License

Licensed CC BY-SA 4.0



This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

CC license.png

Personal tools
Namespaces
Variants
Actions
Events
Learning Resources
HFOSS Projects
Evaluation
Navigation
Toolbox