catchorg / catchorg/Catch2

Catch2 junit reporter suddenly writes empty file

Open
#2,795 0 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

**Describe the bug**
When running my tests with the junit reporter without "--out", I get the report in the console. When running the exact same exe with "--out test.xml", the test.xml is empty (zero byte).
Calling the exact same exe with exact same arguments from within Visual Studio produces a non-empty file !!

**Expected behavior**
The output file shouldn't be empty

**Reproduction steps**
No idea, it broke suddenly, perhaps due to compiler update ?!?

**Platform information:**

- OS: **Windows NT**
- Compiler+version: **Visual Studio 17.4.14**
- Catch version: **v2.13.10**

**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.