Google Test can be used with Qt Creator, and I need to find out how to use that for two reasons:
- Google Test might be more powerful with respect to functions,
- Google Test is more well-known than Qt Test and I will probably use it in future projects.
It's pretty simple to create a stand-alone Google Test application:
- First, I cloned cloning the GoogleTest repo using "git clone https://github.com/google/googletest.git",
- After that, I created a Google Test project according to the Qt documentation.
- After compiling, the test is verifying and asserting the value of 0 and 1.
In the next blog post, I'll look into the files of the project and try to add test cases, and also to include Google test into TrafficControl.
No comments:
Post a Comment