Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests for TERingStack #215

Open
aregtech opened this issue Aug 5, 2023 · 0 comments
Open

Unit tests for TERingStack #215

aregtech opened this issue Aug 5, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed unit test

Comments

@aregtech
Copy link
Owner

aregtech commented Aug 5, 2023

Description:
TERingStack is a Ring Stack. It is needed to add unit tests to test all public methods and to cover as much codes as possible.

Solution:

  1. There is a ./tests/units/ folder in the project to add unit tests.
  2. Add in that folder a new unit testing file, for example TERingStack.cpp, and write unit tests.
    • The unit tests should run at least with int, unsigned int, float / double and std::string and String / WideString types.
    • The tests with the custom types, like custom structures, are welcome, but it is optional.
    • If the amount of testing methods are to large, they can be split and can be implemented either in a separate folder (for example array) or can be split to separate files like TERingStackStringTest.cpp.
    • Each created file should be added in the CMakeLists.txt and in the areg-tests MSVC project.
    • Each .cpp file should have a list of tested methods at the top
    • Each test method should have convenient name that is describing the purpose of the test, and should have short description.
  3. The tests should run. In case if a bug found, create a ticket and mention the priority in the title, like [bug]. Each created ticket should have at least 2 labels: bug and unit test.
@aregtech aregtech added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers unit test labels Aug 5, 2023
@aregtech aregtech self-assigned this Aug 5, 2023
@aregtech aregtech removed their assignment Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed unit test
Projects
Status: No status
Development

No branches or pull requests

1 participant