catchorg / catchorg/Catch2

How to pass command line arguments to a TEST_CASE

Open
#2,283 1 comment 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

I read how to parse command line options: [here](../blob/devel/docs/own-main.md). However, I could not figure out how to use this inside a `TEST_CASE`. For example, how do I use the value of `height` in that example in a test? Also, is there any way to create a test case without using the `TEST_CASE` macro?

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.