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>
TEST_CASE("sf::BlendMode class - [graphics]")
TEST_CASE("[Graphics] sf::BlendMode")
{
SUBCASE("Construction")
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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")
{

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
#include <sstream>
TEST_CASE("sf::err - [system]")
TEST_CASE("[System] sf::err")
{
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")
{

View File

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

View File

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

View File

@ -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")
{

View File

@ -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")
{

View File

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

View File

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