Skip to content

Consolidate test framework syntax usage #10

@fairlight1337

Description

@fairlight1337

Describe the bug
The tests written for the project are using different types of syntax:

TEST_CASE("Test description", "ComponentUnderTest") {
  // Test code
}

vs.

TEST_CASE("test_description", "ComponentUnderTest") {
  // Test code
}

vs.

TEST_CASE("ComponentUnderTest") {
  SECTION("Test description") {
    // Test code
  }
}

vs.

TEST_CASE("ComponentUnderTest") {
  SECTION("test_description") {
    // Test code
  }
}

This is very confusing and a common guideline is difficult to pin down.

To Reproduce
Look at the .cpp test files in tests/.

Expected behavior
All of the tests should have this format:

TEST_CASE("ComponentUnderTest") {
  SECTION("Test description") {
    // Test code
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions