Skip to content
/ tim Public

Fast and easy to use C/C++ testing framework.

License

Notifications You must be signed in to change notification settings

aeryz/tim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing Is a Must

MIT TWEET

Easy to use testing framework for C.

Get Started (quick)

  1. Make an awesome C project.

  2. Put tim.h and tim.c to your project.

  3. Write some tim-tests in files that end with _test.c.

TIM_TEST(cool_stuff) {
    TIM_ASSERT_EQ(true, false);
    TIM_SUCCESS();
}
  1. Create a CMakeLists.txt in the project root.

  2. Write some cmake stuff. (Don't forget to add tim.c to your sources)

if (DEFINED TIM_TEST_BUILD)
    add_library(my_awesome_lib SHARED foo_test.c bar_test.c tim.c)
    # These will hopefully won't be necessary in the future :)
    set_target_properties(rtw PROPERTIES PREFIX "")
    set_target_properties(rtw PROPERTIES SUFFIX "")
    set_target_properties(rtw PROPERTIES OUTPUT_NAME "tim-test-lib")
endif()
  1. Run TIM.
tim -p /path/to/my/project

Installation

tim is not yet published to crates.io. So it is necessary to clone the repository.

git clone https://github.com/aeryz/tim
cargo install --path /path/to/tim

Build Systems

Build System Supported
CMake ✔️
Premake ✖️   🔜   ✔️
Make ✖️   🔜   ✔️

About

Fast and easy to use C/C++ testing framework.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published