From 25fa30afc6a4a409be0395359441f438ee9d582b Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Mon, 4 Jul 2022 23:51:18 -0600 Subject: [PATCH] Make test case names more readable Test output now shows the module name left-aligned so you can easily browse to see what modules have what tests and know what module a failing test is coming from. --- test/Graphics/BlendMode.cpp | 2 +- test/Graphics/CircleShape.cpp | 2 +- test/Graphics/Color.cpp | 2 +- test/Graphics/ConvexShape.cpp | 2 +- test/Graphics/Glyph.cpp | 2 +- test/Graphics/Image.cpp | 2 +- test/Graphics/Rect.cpp | 2 +- test/Graphics/RectangleShape.cpp | 2 +- test/Graphics/RenderStates.cpp | 2 +- test/Graphics/Shape.cpp | 2 +- test/Graphics/Transform.cpp | 2 +- test/Graphics/Transformable.cpp | 2 +- test/Graphics/Vertex.cpp | 2 +- test/Graphics/VertexArray.cpp | 2 +- test/Graphics/View.cpp | 2 +- test/Network/IpAddress.cpp | 2 +- test/Network/Packet.cpp | 2 +- test/System/Angle.cpp | 2 +- test/System/Clock.cpp | 2 +- test/System/Config.cpp | 2 +- test/System/Err.cpp | 2 +- test/System/FileInputStream.cpp | 2 +- test/System/MemoryInputStream.cpp | 2 +- test/System/Time.cpp | 2 +- test/System/Vector2.cpp | 2 +- test/System/Vector3.cpp | 2 +- test/Window/ContextSettings.cpp | 2 +- test/Window/VideoMode.cpp | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/test/Graphics/BlendMode.cpp b/test/Graphics/BlendMode.cpp index 501da199b..378d4ab32 100644 --- a/test/Graphics/BlendMode.cpp +++ b/test/Graphics/BlendMode.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::BlendMode class - [graphics]") +TEST_CASE("[Graphics] sf::BlendMode") { SUBCASE("Construction") { diff --git a/test/Graphics/CircleShape.cpp b/test/Graphics/CircleShape.cpp index a345e6d88..c5dcf7a23 100644 --- a/test/Graphics/CircleShape.cpp +++ b/test/Graphics/CircleShape.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::CircleShape class - [graphics]") +TEST_CASE("[Graphics] sf::CircleShape") { SUBCASE("Default constructor") { diff --git a/test/Graphics/Color.cpp b/test/Graphics/Color.cpp index 7f5e8804f..b50684b79 100644 --- a/test/Graphics/Color.cpp +++ b/test/Graphics/Color.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::Color class - [graphics]") +TEST_CASE("[Graphics] sf::Color") { SUBCASE("Construction") { diff --git a/test/Graphics/ConvexShape.cpp b/test/Graphics/ConvexShape.cpp index 73aad7859..449214a19 100644 --- a/test/Graphics/ConvexShape.cpp +++ b/test/Graphics/ConvexShape.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::ConvexShape class - [graphics]") +TEST_CASE("[Graphics] sf::ConvexShape") { SUBCASE("Default constructor") { diff --git a/test/Graphics/Glyph.cpp b/test/Graphics/Glyph.cpp index ef28c2c28..0885c750e 100644 --- a/test/Graphics/Glyph.cpp +++ b/test/Graphics/Glyph.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::Glyph class - [graphics]") +TEST_CASE("[Graphics] sf::Glyph") { SUBCASE("Construction") { diff --git a/test/Graphics/Image.cpp b/test/Graphics/Image.cpp index c3676e6b4..3f9b5aa25 100644 --- a/test/Graphics/Image.cpp +++ b/test/Graphics/Image.cpp @@ -5,7 +5,7 @@ #include #include -TEST_CASE("sf::Image - [graphics]") +TEST_CASE("[Graphics] sf::Image") { SUBCASE("Default constructor") { diff --git a/test/Graphics/Rect.cpp b/test/Graphics/Rect.cpp index e04edf3f8..78a0208da 100644 --- a/test/Graphics/Rect.cpp +++ b/test/Graphics/Rect.cpp @@ -5,7 +5,7 @@ #include -TEST_CASE("sf::Rect class template - [graphics]") +TEST_CASE("[Graphics] sf::Rect") { SUBCASE("Construction") { diff --git a/test/Graphics/RectangleShape.cpp b/test/Graphics/RectangleShape.cpp index e58dc6d23..cb672c120 100644 --- a/test/Graphics/RectangleShape.cpp +++ b/test/Graphics/RectangleShape.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::RectangleShape class - [graphics]") +TEST_CASE("[Graphics] sf::RectangleShape") { SUBCASE("Default constructor") { diff --git a/test/Graphics/RenderStates.cpp b/test/Graphics/RenderStates.cpp index e58947267..dc4c5be9f 100644 --- a/test/Graphics/RenderStates.cpp +++ b/test/Graphics/RenderStates.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::RenderStates class - [graphics]") +TEST_CASE("[Graphics] sf::RenderStates") { SUBCASE("Construction") { diff --git a/test/Graphics/Shape.cpp b/test/Graphics/Shape.cpp index 8b297cebb..49a06476d 100644 --- a/test/Graphics/Shape.cpp +++ b/test/Graphics/Shape.cpp @@ -35,7 +35,7 @@ private: sf::Vector2f m_size; }; -TEST_CASE("sf::Shape class - [graphics]") +TEST_CASE("[Graphics] sf::Shape") { SUBCASE("Default constructor") { diff --git a/test/Graphics/Transform.cpp b/test/Graphics/Transform.cpp index e2908541f..30d778a14 100644 --- a/test/Graphics/Transform.cpp +++ b/test/Graphics/Transform.cpp @@ -25,7 +25,7 @@ struct StringMaker> }; } // namespace doctest -TEST_CASE("sf::Transform class - [graphics]") +TEST_CASE("[Graphics] sf::Transform") { SUBCASE("Construction") { diff --git a/test/Graphics/Transformable.cpp b/test/Graphics/Transformable.cpp index d56c2334d..5f7bb0d6a 100644 --- a/test/Graphics/Transformable.cpp +++ b/test/Graphics/Transformable.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::Transformable class - [graphics]") +TEST_CASE("[Graphics] sf::Transformable") { SUBCASE("Construction") { diff --git a/test/Graphics/Vertex.cpp b/test/Graphics/Vertex.cpp index e61f947c9..20207c7fd 100644 --- a/test/Graphics/Vertex.cpp +++ b/test/Graphics/Vertex.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::Vertex class - [graphics]") +TEST_CASE("[Graphics] sf::Vertex") { SUBCASE("Construction") { diff --git a/test/Graphics/VertexArray.cpp b/test/Graphics/VertexArray.cpp index 5e39e3943..31014b10f 100644 --- a/test/Graphics/VertexArray.cpp +++ b/test/Graphics/VertexArray.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::VertexArray class - [graphics]") +TEST_CASE("[Graphics] sf::VertexArray") { SUBCASE("Construction") { diff --git a/test/Graphics/View.cpp b/test/Graphics/View.cpp index 4b1195ad9..e996d2aa9 100644 --- a/test/Graphics/View.cpp +++ b/test/Graphics/View.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::View class - [graphics]") +TEST_CASE("[Graphics] sf::View") { SUBCASE("Construction") { diff --git a/test/Network/IpAddress.cpp b/test/Network/IpAddress.cpp index 347c9aa42..028190cdc 100644 --- a/test/Network/IpAddress.cpp +++ b/test/Network/IpAddress.cpp @@ -8,7 +8,7 @@ using namespace std::string_literals; using namespace std::string_view_literals; -TEST_CASE("sf::IpAddress class - [network]") +TEST_CASE("[Network] sf::IpAddress") { SUBCASE("Construction") { diff --git a/test/Network/Packet.cpp b/test/Network/Packet.cpp index 8c607c06d..a6a569ace 100644 --- a/test/Network/Packet.cpp +++ b/test/Network/Packet.cpp @@ -26,7 +26,7 @@ CHECK(expected == received); \ } while (false) -TEST_CASE("sf::Packet class - [network]") +TEST_CASE("[Network] sf::Packet") { SUBCASE("Default constructor") { diff --git a/test/System/Angle.cpp b/test/System/Angle.cpp index 14a1a5435..4db2f2e6d 100644 --- a/test/System/Angle.cpp +++ b/test/System/Angle.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::Angle class - [system]") +TEST_CASE("[System] sf::Angle") { SUBCASE("Construction") { diff --git a/test/System/Clock.cpp b/test/System/Clock.cpp index d3462a3f0..114253e7a 100644 --- a/test/System/Clock.cpp +++ b/test/System/Clock.cpp @@ -6,7 +6,7 @@ #include #include -TEST_CASE("sf::Clock class - [system]") +TEST_CASE("[System] sf::Clock") { SUBCASE("getElapsedTime()") { diff --git a/test/System/Config.cpp b/test/System/Config.cpp index 4f6089c87..357267468 100644 --- a/test/System/Config.cpp +++ b/test/System/Config.cpp @@ -2,7 +2,7 @@ #include -TEST_CASE("SFML/Config.hpp") +TEST_CASE("[System] SFML/Config.hpp") { SUBCASE("Version macros") { diff --git a/test/System/Err.cpp b/test/System/Err.cpp index 83f9bdaa7..90eec56bb 100644 --- a/test/System/Err.cpp +++ b/test/System/Err.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::err - [system]") +TEST_CASE("[System] sf::err") { SUBCASE("Overflow default buffer") { diff --git a/test/System/FileInputStream.cpp b/test/System/FileInputStream.cpp index 4adc06d6b..e8fac5578 100644 --- a/test/System/FileInputStream.cpp +++ b/test/System/FileInputStream.cpp @@ -58,7 +58,7 @@ public: } }; -TEST_CASE("sf::FileInputStream class - [system]") +TEST_CASE("[System] sf::FileInputStream") { SUBCASE("Empty stream") { diff --git a/test/System/MemoryInputStream.cpp b/test/System/MemoryInputStream.cpp index 46911c1f6..634c0be44 100644 --- a/test/System/MemoryInputStream.cpp +++ b/test/System/MemoryInputStream.cpp @@ -5,7 +5,7 @@ #include #include -TEST_CASE("sf::MemoryInputStream class - [system]") +TEST_CASE("[System] sf::MemoryInputStream") { SUBCASE("Empty stream") { diff --git a/test/System/Time.cpp b/test/System/Time.cpp index 092f01559..38eba4638 100644 --- a/test/System/Time.cpp +++ b/test/System/Time.cpp @@ -19,7 +19,7 @@ struct StringMaker> }; } // namespace doctest -TEST_CASE("sf::Time class - [system]") +TEST_CASE("[System] sf::Time") { SUBCASE("Construction") { diff --git a/test/System/Vector2.cpp b/test/System/Vector2.cpp index d56d51576..378e4d461 100644 --- a/test/System/Vector2.cpp +++ b/test/System/Vector2.cpp @@ -12,7 +12,7 @@ using namespace sf::Literals; // Test coverage is given, as there are no template specializations. -TEST_CASE("sf::Vector2 class template - [system]") +TEST_CASE("[System] sf::Vector2") { SUBCASE("Construction") { diff --git a/test/System/Vector3.cpp b/test/System/Vector3.cpp index faee11c59..6ab60ba4e 100644 --- a/test/System/Vector3.cpp +++ b/test/System/Vector3.cpp @@ -8,7 +8,7 @@ // Use sf::Vector3i for tests (except for float vector algebra). // Test coverage is given, as there are no template specializations. -TEST_CASE("sf::Vector3 class template - [system]") +TEST_CASE("[System] sf::Vector3") { SUBCASE("Construction") { diff --git a/test/Window/ContextSettings.cpp b/test/Window/ContextSettings.cpp index 7c94aab96..23cb06da5 100644 --- a/test/Window/ContextSettings.cpp +++ b/test/Window/ContextSettings.cpp @@ -2,7 +2,7 @@ #include -TEST_CASE("sf::ContextSettings class - [window]") +TEST_CASE("[Window] sf::ContextSettings") { SUBCASE("Construction") { diff --git a/test/Window/VideoMode.cpp b/test/Window/VideoMode.cpp index 62daa71db..afe8e119e 100644 --- a/test/Window/VideoMode.cpp +++ b/test/Window/VideoMode.cpp @@ -4,7 +4,7 @@ #include -TEST_CASE("sf::VideoMode class - [window]") +TEST_CASE("[Window] sf::VideoMode") { SUBCASE("Construction") {