Back to Browse

Testing Superpowers: Using CLion to Add Tests Easily

7.9K views
Streamed live on Feb 16, 2021
1:09:56

CLion is great for refactoring C++ code to make it more maintainable. But as someone asked in Arne Mertz's "Refactoring C++ Code" webinar, "What to do if we don’t have tests on the project and so can’t check the changes introduced by refactorings easily?" Timeline: 00:00 Webinar begins 01:53 An Introduction from Clare 04:15 Let’s look at the code 07:24 Dependencies used in the webinar 08:50 Adding Catch2 tests to the project 17:22 Using Approval Test 26:38 Summing up the Approval Test approach 32:45 First QA session 44:14 Using built-in Code Coverage in CLion 47:15 C/C++ Code Coverage plugin for CLion 51:00 Improving tests 01:00:23 Summary from Clare 01:05:55 Second QA session 01:08:43 Wrapping up the webinar Categories: #webinar #CLion #cpp Hosted by: Anastasia Kazakova, Phil Nash About the Presenter: Clare Macrae is an independent consultant, helping teams streamline their work with legacy and hard-to-test C++ and Qt code. She offers training courses, and consultancy work, to show how to test difficult code easily. She has worked in software development for over 30 years, and in C++ for over 20 years, specialising in crystal structure visualisation. She is a core contributor to the Approval Tests for C++ library, which makes it really easy to get legacy code under test. Blog post: https://blog.jetbrains.com/clion/2021/02/testing-superpowers-webinar-recording/

Download

1 formats

Video Formats

360pmp4114.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Testing Superpowers: Using CLion to Add Tests Easily | NatokHD