Empty tag in test case produces crash when generating junit report
- Dominant language
- C++
- Stars
- 21.5k
- Forks
- 3.5k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
If I write a test case like so:
`TEST_CASE("Test requirements of some type", "[][type]")
{...}`
where we have an empty tag "[]", the program crashes when we try to generate junit output. Normal xml output works apparently.
**Expected behavior**
I would expect no crash and that the empty tag is in the output like it is for the normal xml.
**Reproduction steps**
Build your test executable in debug mode and run
`Test.exe -r junit`
This should trigger an assertion in std::string about calling front() on an empty string.
**Platform information:**
- OS: windows 10
- Compiler+version: Microsoft (R) C/C++ Optimizing Compiler Version 19.30.30709 for x64
- Catch version: v2.13.8
Contributor guide
Assessment
This issue has not been assessed yet.