C++ - Unit tests

Christian Møllnitz's Avatar

Christian Møllnitz

05 Jul, 2018 02:40 PM

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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? 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