Today we will take a look at integration testing and QtTest.
Links:
GitHub Invitation URL: exercise14
Steps:
toggle_widget.h
defines a Qt widget that uses a push button to toggle a radio button representing a light.toggle_widget.cpp
is the implementation of the toggle widgetmain.cpp
sets up the application and starts the event looptest_toggle_widget.cpp
is a skeleton test for toggle_widgetBuild and run your application. Manually test that when the button is clicked the radio button toggles on/off.
Add a code to test_toggle_widget.cpp
to test that when the button is clicked the radio button toggles on/off.
Run your tests and check they pass.
Now, use git to commit the source files changed to the local repository.
Finally, use git push to synchronize the repository with that on GitHub.
You have completed the Exercise.