C++ - Unit tests

Christian Møllnitz's Avatar

Christian Møllnitz

05 Jul, 2018 02:40 PM

Hey!
I have been working on my first CI / CPP project for a few days now, and I'm trying to get unit tests to work, I have tried a few things but there really dosn't seem to be a way to go about it that I understand.

Here is a link to my repository on github: https://github.com/BabyBluee/BaseConverter

As you can see I am using CMake to create a new project, and then building that on appveyor, which works wonders, but when i try to include google tests (gtest) or microsofts own, it dosn't want to cooperate.

Any and all help would be greatly appreciated, thank you.

  1. Support Staff 1 Posted by Owen McDonnell on 05 Jul, 2018 05:36 PM

    Owen McDonnell's Avatar

    Hi Christian,
    AppVeyor does not support automatic discovery of tests written for either of those frameworks.

    You can, however, install anything you need to perform them at the install: stage of your build and then add your own custom test_script: section to your configuration file.

    Check here for more info.

  2. Ilya Finkelshteyn closed this discussion on 04 Sep, 2018 09:00 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac