approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
312 stars 51 forks source link

Releases 10.6.0 and 10.7.0 contain invalid #include line #170

Closed claremacrae closed 3 years ago

claremacrae commented 3 years ago

The problem code is this:

// ******************** From: FrameworkIntegrations.h

#include <ApprovalTests.hpp>

namespace ApprovalTests
{
    class FrameworkIntegrations
    {
    public:
        static void
        setTestPassedNotification(FileApprover::TestPassedNotification notification);

        static void setCurrentTest(ApprovalTests::TestName* currentTest);
    };
}

I saw it via this build error, when using the single-header file:

error: 'ApprovalTests.hpp' file not found with <angled> include; use "quotes" instead
#include <ApprovalTests.hpp>
         ^~~~~~~~~~~~~~~~~~~
         "ApprovalTests.hpp"
1 error generated.

It's wrong at several levels:

claremacrae commented 3 years ago

This was fixed in the 10.7.1 release.