Methods for conducting unit tests in the C++14 standard using the GMOCK library

Kamil Strózik

struzikk@gmail.com
Lublin University of Technology (Poland)

Abstract

The article presents one of the problems encountered when using the C ++ 14 standard along with the Google Mock library. Based on
the introduced problem, possible solutions were discussed, as well as an improved scheme for the TDD approach was presented.


Keywords:

Unit tests; C 14; Google Mock; TDD;

[1] Stanisław Pietrow, https://pl.wikipedia.org/wiki/Stanis%C5%82aw_Pietrow . [10.01.2019]
[2] Northeast blackout of 2003, https://en.wikipedia.org/wiki/ Northeast_blackout_of_2003 [11.01.2019]
[3] Ganesan D., Lindvall M.: An analysis of unit tests of a flight software product line. Science of Computer Programming, Volume 78, 2013.
[4] żarousi Yusifoğlu V., Amannejad Y., Betin Can A.: Software test-code engineering: A systematic mapping. Information and Software Technology, Volume 58, 2015.
[5] Martin R. C.: The Clean Coder: a code of conduct for professional programmers. Pearson Education, 2011.
[6] Langr J.: Modern C++ Programming with Test-Driven Development. The Pragmatic Programmers, 2013.
[7] Beck K., Test Driven Development: By Example. AddisonWesley Professional, 2003.
[8] Latore R.: Effects of Developer Experience on Learning and Applying Unit Test-Driven Development. IEEE Transactions on Software Engineering, Volume 40, 2014.
[9] Runeson P.: A Survey of Unit Testing Practices. IEEE Software, volume 23, 2006.
[10] Shin Y., Choi Y., Lee W. J.: Integration testing through reusing representative unit test cases for high-confidence medical software. Computers in Biology and Medicine, Volume 43, 2013.
[11] Osherove R.: The art of Unit Testing Second Edition. Manning Publications Co., 2014.
[12] C++11 - the new ISO C++ standard, http://www.stroustrup.com/C++11FAQ.html, [11.01.2019]
[13] Josuttis N.: C++. Biblioteka standardowa. Podręcznik programisty. Wydanie II. Helion, 2014.
[14] Langr J.: Modern C++ Programming with Test-Driven Development. The Pragmatic Programmers, 2013.
[15] ISO/IEC JTC1 SC22 WG21 N4660. Programming Languages - C++.
[16] Langr J.: Modern C++ Programming with Test-Driven Development. The Pragmatic Programmers, 2013.
[17] Dokumentacja dla biblioteki Google Mock, https://github.com/google/googletest/blob/master/googlemock/docs/CookBook.md [19.01.2019]
[18] Dokumentacja dla skryptu gmock_gen.py, https://github.com/google/googletest/tree/master/googlemock/scripts/generator
[13.01.2019]
[19] Freeman E, Freeman E.: Head First Design Patterns. O’Reilly, 2004.

Published
2019-06-30

Cited by

Strózik, K. (2019). Methods for conducting unit tests in the C++14 standard using the GMOCK library . Journal of Computer Sciences Institute, 11, 131–136. https://doi.org/10.35784/jcsi.168

Authors

Kamil Strózik 
struzikk@gmail.com
Lublin University of Technology Poland

Statistics

Abstract views: 171
PDF downloads: 326