Code Coverage Using gcov

Veröffentlicht am: 20 September 2023
auf dem Kanal: KDAB
2,890
34

In this episode, Jesper will look at what it takes to get code coverage setup with gcov and gcovr.

Links:
cmake toolchains: https://cmake.org/cmake/help/latest/m...

gcovr's home page: https://gcovr.com/

lcov's homepage https://wiki.documentfoundation.org/D...

Details on gcovr's branches https://gcovr.com/en/stable/faq.html

Bug report on custom targets https://bugreports.qt.io/browse/QTCRE...

CMake integration: https://github.com/bilke/cmake-module...

Episode on speeding up the build using ninja:    • Compiling (Part1)- Speeding Up Compilation...  

0:00 Welcome
00:53 Background for the episode
01:54 Compiling with gcov without modifying the cmake files.
04:47 Run the unit tests
06:18 Running gcovr
11:17 Running gcovr on a subset of the files
12:10 gcov is accumulative
13:42 Changing the source files
15:41 Enabling code coverage from Qt Creator
20:47 Jesper, will you use gcov?

All QML tips and tricks videos :    • QML Tips and Tricks  

All Qt Widgets and more videos:
   • Qt Widgets and more  

About the host:
The video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time.

Every month our newsletter is featuring technical blogs on Qt, C++ and 3D topics: https://www.kdab.com/development-reso...

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrolment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-service...

We are over 100 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/


Auf dieser Seite können Sie das Online-Video Code Coverage Using gcov mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer KDAB 20 September 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,890 Mal angesehen und es wurde von 34 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!