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.
This commit is contained in:
Chris Thrasher 2022-07-04 23:51:18 -06:00 committed by Vittorio Romeo
parent acabaadc0b
commit 25fa30afc6
28 changed files with 28 additions and 28 deletions

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::BlendMode class - [graphics]") TEST_CASE("[Graphics] sf::BlendMode")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <SystemUtil.hpp> #include <SystemUtil.hpp>
TEST_CASE("sf::CircleShape class - [graphics]") TEST_CASE("[Graphics] sf::CircleShape")
{ {
SUBCASE("Default constructor") SUBCASE("Default constructor")
{ {

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::Color class - [graphics]") TEST_CASE("[Graphics] sf::Color")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <SystemUtil.hpp> #include <SystemUtil.hpp>
TEST_CASE("sf::ConvexShape class - [graphics]") TEST_CASE("[Graphics] sf::ConvexShape")
{ {
SUBCASE("Default constructor") SUBCASE("Default constructor")
{ {

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::Glyph class - [graphics]") TEST_CASE("[Graphics] sf::Glyph")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -5,7 +5,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
#include <array> #include <array>
TEST_CASE("sf::Image - [graphics]") TEST_CASE("[Graphics] sf::Image")
{ {
SUBCASE("Default constructor") SUBCASE("Default constructor")
{ {

View File

@ -5,7 +5,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::Rect class template - [graphics]") TEST_CASE("[Graphics] sf::Rect")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <SystemUtil.hpp> #include <SystemUtil.hpp>
TEST_CASE("sf::RectangleShape class - [graphics]") TEST_CASE("[Graphics] sf::RectangleShape")
{ {
SUBCASE("Default constructor") SUBCASE("Default constructor")
{ {

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::RenderStates class - [graphics]") TEST_CASE("[Graphics] sf::RenderStates")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -35,7 +35,7 @@ private:
sf::Vector2f m_size; sf::Vector2f m_size;
}; };
TEST_CASE("sf::Shape class - [graphics]") TEST_CASE("[Graphics] sf::Shape")
{ {
SUBCASE("Default constructor") SUBCASE("Default constructor")
{ {

View File

@ -25,7 +25,7 @@ struct StringMaker<std::vector<float>>
}; };
} // namespace doctest } // namespace doctest
TEST_CASE("sf::Transform class - [graphics]") TEST_CASE("[Graphics] sf::Transform")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::Transformable class - [graphics]") TEST_CASE("[Graphics] sf::Transformable")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::Vertex class - [graphics]") TEST_CASE("[Graphics] sf::Vertex")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::VertexArray class - [graphics]") TEST_CASE("[Graphics] sf::VertexArray")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <GraphicsUtil.hpp> #include <GraphicsUtil.hpp>
TEST_CASE("sf::View class - [graphics]") TEST_CASE("[Graphics] sf::View")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -8,7 +8,7 @@
using namespace std::string_literals; using namespace std::string_literals;
using namespace std::string_view_literals; using namespace std::string_view_literals;
TEST_CASE("sf::IpAddress class - [network]") TEST_CASE("[Network] sf::IpAddress")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -26,7 +26,7 @@
CHECK(expected == received); \ CHECK(expected == received); \
} while (false) } while (false)
TEST_CASE("sf::Packet class - [network]") TEST_CASE("[Network] sf::Packet")
{ {
SUBCASE("Default constructor") SUBCASE("Default constructor")
{ {

View File

@ -4,7 +4,7 @@
#include <SystemUtil.hpp> #include <SystemUtil.hpp>
TEST_CASE("sf::Angle class - [system]") TEST_CASE("[System] sf::Angle")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -6,7 +6,7 @@
#include <SystemUtil.hpp> #include <SystemUtil.hpp>
#include <thread> #include <thread>
TEST_CASE("sf::Clock class - [system]") TEST_CASE("[System] sf::Clock")
{ {
SUBCASE("getElapsedTime()") SUBCASE("getElapsedTime()")
{ {

View File

@ -2,7 +2,7 @@
#include <doctest/doctest.h> #include <doctest/doctest.h>
TEST_CASE("SFML/Config.hpp") TEST_CASE("[System] SFML/Config.hpp")
{ {
SUBCASE("Version macros") SUBCASE("Version macros")
{ {

View File

@ -4,7 +4,7 @@
#include <sstream> #include <sstream>
TEST_CASE("sf::err - [system]") TEST_CASE("[System] sf::err")
{ {
SUBCASE("Overflow default buffer") SUBCASE("Overflow default buffer")
{ {

View File

@ -58,7 +58,7 @@ public:
} }
}; };
TEST_CASE("sf::FileInputStream class - [system]") TEST_CASE("[System] sf::FileInputStream")
{ {
SUBCASE("Empty stream") SUBCASE("Empty stream")
{ {

View File

@ -5,7 +5,7 @@
#include <ostream> #include <ostream>
#include <string_view> #include <string_view>
TEST_CASE("sf::MemoryInputStream class - [system]") TEST_CASE("[System] sf::MemoryInputStream")
{ {
SUBCASE("Empty stream") SUBCASE("Empty stream")
{ {

View File

@ -19,7 +19,7 @@ struct StringMaker<std::chrono::duration<Rep, Period>>
}; };
} // namespace doctest } // namespace doctest
TEST_CASE("sf::Time class - [system]") TEST_CASE("[System] sf::Time")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -12,7 +12,7 @@ using namespace sf::Literals;
// Test coverage is given, as there are no template specializations. // Test coverage is given, as there are no template specializations.
TEST_CASE("sf::Vector2 class template - [system]") TEST_CASE("[System] sf::Vector2")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -8,7 +8,7 @@
// Use sf::Vector3i for tests (except for float vector algebra). // Use sf::Vector3i for tests (except for float vector algebra).
// Test coverage is given, as there are no template specializations. // Test coverage is given, as there are no template specializations.
TEST_CASE("sf::Vector3 class template - [system]") TEST_CASE("[System] sf::Vector3")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -2,7 +2,7 @@
#include <doctest/doctest.h> #include <doctest/doctest.h>
TEST_CASE("sf::ContextSettings class - [window]") TEST_CASE("[Window] sf::ContextSettings")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {

View File

@ -4,7 +4,7 @@
#include <WindowUtil.hpp> #include <WindowUtil.hpp>
TEST_CASE("sf::VideoMode class - [window]") TEST_CASE("[Window] sf::VideoMode")
{ {
SUBCASE("Construction") SUBCASE("Construction")
{ {