{"id":23436367,"url":"https://github.com/gammasoft71/tunit","last_synced_at":"2025-06-11T21:05:42.093Z","repository":{"id":111159375,"uuid":"170288375","full_name":"gammasoft71/tunit","owner":"gammasoft71","description":"Modern c++17 unit testing framework on Microsoft Windows, Apple macOS, Linux, iOS and android.","archived":false,"fork":false,"pushed_at":"2021-09-24T06:45:23.000Z","size":2561,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T04:12:32.522Z","etag":null,"topics":["cpp","cpp17","framework","ios","libraries","library","macosx","multi-platform","tdd","test","test-framework","testing","unit-tesing","unit-test","unit-testing","unit-testing-framework","unit-tests","unittest","unittests"],"latest_commit_sha":null,"homepage":"https://gammasoft71.wixsite.com/tunit","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gammasoft71.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-02-12T09:19:34.000Z","updated_at":"2025-01-25T11:54:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f2f724b-5562-4eee-a6f8-8dab0fe3fd49","html_url":"https://github.com/gammasoft71/tunit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gammasoft71/tunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammasoft71%2Ftunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammasoft71%2Ftunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammasoft71%2Ftunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammasoft71%2Ftunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gammasoft71","download_url":"https://codeload.github.com/gammasoft71/tunit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gammasoft71%2Ftunit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259340517,"owners_count":22843007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp17","framework","ios","libraries","library","macosx","multi-platform","tdd","test","test-framework","testing","unit-tesing","unit-test","unit-testing","unit-testing-framework","unit-tests","unittest","unittests"],"created_at":"2024-12-23T13:18:53.582Z","updated_at":"2025-06-11T21:05:42.087Z","avatar_url":"https://github.com/gammasoft71.png","language":"C++","readme":"# tunit\n\n**Modern c++17 unit testing framework on Windows, macOS, Linux, iOS and android.**\n\n[![tunit](docs/pictures/tunit_header.png)](https://gammasoft71.wixsite.com/tunit)\n\n## Continuous Integration build status\n\n| Operating system | Status                                                                                                                                      |\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| Windows          | [![Build status](https://ci.appveyor.com/api/projects/status/1h8y1d4lodnk1wbb?svg=true)](https://ci.appveyor.com/project/gammasoft71/tunit) |\n| macOS            | [![Build Status](https://travis-ci.org/gammasoft71/tunit.svg?branch=master)](https://travis-ci.org/gammasoft71/tunit)                       |\n| Linux            | [![Build Status](https://travis-ci.org/gammasoft71/tunit.svg?branch=master)](https://travis-ci.org/gammasoft71/tunit)                       |\n\n## Download the latest stable tunit version\n\n[![SourceForge Download tunit](https://img.shields.io/sourceforge/dt/tunitpro.svg)](https://sourceforge.net/projects/tunitpro/files/latest/download)\n\n## Features\n\n* An [xUnit](https://en.wikipedia.org/wiki/XUnit) test framework.\n* Auto registration of class and method based tests.\n* Rich set of assertions.\n* ...\n\n### For more information see\n* [website](https://gammasoft71.wixsite.com/tunit) \n* [markdown documentations](docs/home.md)\n* [sources](https://github.com/gammasoft71/tunit)\n* [Reference Guide](https://codedocs.xyz/gammasoft71/tunit/)\n\n## Examples\n\nThe classic first application 'Hello World'.\n\n### tunit_hello_world.cpp\n\n```c++\n#include \u003ctunit/tunit\u003e\n#include \u003cstring\u003e\n\nusing namespace std;\nusing namespace tunit;\n\nnamespace unit_tests {\n  class test_class_(hello_world_test) {\n  public:\n    void test_method_(create_string_from_literal) {\n      string s = \"Hello, World!\";\n      valid::are_equal(13, s.size());\n      assert::are_equal(\"Hello, World!\", s);\n    }\n    \n    void test_method_(create_string_from_chars) {\n      string s = {'H', 'e', 'l', 'l', 'o', ',', ' ', 'W', 'o', 'r', 'l', 'd', '!'};\n      valid::are_equal(13, s.size());\n      string_assert::starts_with(\"Hello,\", s);\n      string_assert::ends_with(\" World!\", s);\n    }\n  };\n}\n\n// The main entry point for the application.\nint main() {\n  return console_unit_test().run();\n}\n```\n\n### CMakeLists.txt\n\n```cmake\ncmake_minimum_required(VERSION 3.3)\n\nproject(tunit_hello_world)\nfind_package(tunit REQUIRED)\nadd_executable(${PROJECT_NAME} tunit_hello_world.cpp)\ntarget_link_libraries(${PROJECT_NAME} tunit)\n```\n\n### Output\n```\ntart 2 tests from 1 test case\nRun tests:\n  SUCCEED hello_world_test.create_string_from_literal (0 ms total)\n  SUCCEED hello_world_test.create_string_from_chars (0 ms total)\n\nTest results:\n  SUCCEED 2 tests.\nEnd 2 tests from 1 test case ran. (0 ms total)\n```\n\n## Getting Started\n\n* [Installation](docs/downloads.md) provides download and install documentation.\n* [Portability](docs/portability.md) provides information about C++, libraries dependency, Operating System suported, Compilators and Devepment Environment tools.\n* [Examples](docs/examples.md) provides some examples.\n\n______________________________________________________________________________________________\n\n© 2021 Gammasoft.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammasoft71%2Ftunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgammasoft71%2Ftunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgammasoft71%2Ftunit/lists"}