Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Modern C++ development with bazel, googletest and googlemock
Rating: 3.7 out of 5(64 ratings)
310 students

Modern C++ development with bazel, googletest and googlemock

Learning to write testable code using a modern build system - bazel
Last updated 1/2020
English

What you'll learn

  • Learn the basics of using the modern build system that scales
  • Understand how to import code from external sources
  • Write tests to verify that your code matches the specification
  • Write code to return dummy data using google mock.

Course content

4 sections16 lectures2h 12m total length
  • Introduction4:05

    Explore modern c++ development with bazel, googletest, and googlemock through hands-on demos of bazel builds, unit testing, and in-process mocks that avoid external calls.

  • Setup2:01

    Set up the demo by downloading and unzipping the modern underscore cpb dot zip, install Visual Studio Code, and configure Bazel, G++, and the C/C++ and Bazel extensions; open project.

Requirements

  • Basic C++
  • Should've written some C++ code using classes and header files.

Description

Bazel is a build system from google. C++ is one of the languages that bazel supports.

One of the nice things about bazel is, you specify the files and bazel figures out the dependency tree.

Bazel is written in skylark (a subset of python) which makes it accessible to a wide audience.

The ability to integrate with other libraries and the build performance makes bazel a great choice to use.


Googletest is an industry wide accepted solution for unit testing. It's battle tested across multiple projects at varying scales in the industry.

This framework is built along lines of other popular frameworks like junit (following the xunit principles)


Googlemock is a framework for stubbing external calls to make your unit tests repeatable in isolation.


Looking forward to seeing you in the course.

Cheers.

Who this course is for:

  • Anyone with a basic understanding of C++.
  • If you're an experienced programmer who doesn't know much of C++, that's OK too. Focus is on the these frameworks and not on C++