Catch2 icon indicating copy to clipboard operation
Catch2 copied to clipboard

I place a benchmark inside a TEST_CASE() and I don't see the results

Open juandent opened this issue 1 year ago • 0 comments

I place this code:

TEST_CASE("Benchmark")
{
	BENCHMARK("simple") {
		return long_computation();
	};
}

I don't get any display in the console -- actually there is no console, why??

I am working in VS2022 v 17.9.0 Community Edition....

I would expect to see timing results!!

  • OS: Windows 11 Pro
  • Compiler+version: VS2022 v17.9.0
  • Catch version: ? latest

Additional context I am using a VS2022 addon called Resharper C++ I chose the unit test "Benchmark" from Resharper C++ Unit Test Sessions

juandent avatar Feb 17 '24 18:02 juandent