catchorg / catchorg/Catch2

How to call into catch manually

Open
#1,721 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
int main(int argc, char* argv[])
{
REQUIRE_THROWS(connected);
int result = Catch::REQUIRE_THROWS(connected);
return result;
}
the console output no infoemation,neither case pass nor case fail.

while I expect console controller to tell me whether the REQUIRE passed.
**Reproduction steps**
Steps to reproduce the bug.

**Platform information:**

- OS: **Windows NT**
- Compiler+version: **GCC v2.9.5**
- Catch version: **v1.2.3**

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.