ut VS templight

Compare ut vs templight and see what are their differences.

templight

Templight is a Clang-based tool to profile the time and memory consumption of template instantiations and to perform interactive debugging sessions to gain introspection into the template instantiation process. (by mikael-s-persson)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
ut templight
10 4
1,202 704
1.1% -
7.0 4.0
about 2 months ago about 1 month ago
C++ C++
Boost Software License 1.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ut

Posts with mentions or reviews of ut. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-10.
  • [C++20][safety] static_assert is all you need (no leaks, no UB)
    3 projects | /r/cpp | 10 Apr 2023
    I don't think stepping through static_assert is a thing? Curious if it is, though. Since constexpr is either run-time or compile-time and static_assert is not a poor man's debugging facility could be to -Dstatic_assert(...) assert(__VA_ARGS__) and gdb the code. Alternatively, a more refined solution would be to use an UT framework (for example https://github.com/boost-ext/ut) which helps with that. IMHO, TDD can also limit the requirement of stepping into the code and with gurantees that the code is memory safe and UB safe there is less need for sanitizers and valgrind etc. depending on the coverage.
  • snatch -- A lightweight C++20 testing framework
    5 projects | /r/cpp | 18 Oct 2022
    It was not easy, I had to modify Boost UT to get it to run my tests. It doesn't support type-parametrized tests when the type parameter is non-copiable, which was the case for me. This is a symptom of a larger issue, which is that it relies on std::apply and std::tuple to generate the type-parametrized tests, which in turns requires instantiating the tuple and the contained objects (even though these instances aren't actually used; eh). That's a no go for me, since I need to carefully monitor when instance are created, and this was throwing off my test code. I had to effectively disable these checks to get it to run without failures. Then there was a similar issue with expect(), which doesn't work if part of the expression is non-copiable. I reported these issues to them.
  • [C++20] New way of meta-programming?
    5 projects | /r/cpp | 5 Sep 2022
    https://github.com/boost-ext/ut (for better user interface when defining tests without macros)
  • Getting started with Boost in 2022
    5 projects | /r/cpp | 14 Apr 2022
    https://github.com/boost-ext/ut from Kris Jusiak is worth checking
  • How to unit test
    8 projects | /r/cpp_questions | 9 Feb 2022
  • Calculate Your Code Performance
    5 projects | dev.to | 23 Oct 2021
    C++: C++ has quite a number of benchmarking libraries some of the recent ones involving C++ 20's flexibility. The most notable being Google Bench and UT. C does not have many specific benchmarking libraries, but you can easily integrate C code with C++ benchmarking libraries in order to test the performance of your C code.
  • Benchmarking Code
    6 projects | dev.to | 19 Oct 2021
    UT
  • Another C++ unit testing framework without macros
    6 projects | /r/cpp | 16 Apr 2021
    In Boost.UT there is a number of different styles to add a parametrized test case. All of them are pretty cryptic bue to heavy isage of oeverloaded operators of custom "non-public" classes. Except for the for-loop method, in all other methods the list of parameter values goes after the test procedure definition. I find this inconvenient, as I want to see list of parameter value next to the test name. This is what I used to from the times I was coding a lot of unit tests in C#.

templight

Posts with mentions or reviews of templight. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-10.
  • static_assert is all you need (no leaks, no UB)
    5 projects | news.ycombinator.com | 10 Apr 2023
    IMHO the best approach is to avoid the problem by applying TDD. Then there is very little need to debug anything. But otherwise, there is https://github.com/mikael-s-persson/templight for compile-time debugging which is pretty cool and having something like `expect(auto... args) static_asert(args...); assert(args...);` may help with being able to debug at run-time and get the coverage (though, the code has has to compile aka pass first).
  • [C++20][safety] static_assert is all you need (no leaks, no UB)
    3 projects | /r/cpp | 10 Apr 2023
    For sure. There has been https://github.com/mikael-s-persson/templight and https://github.com/metashell/metashell. The former allowed to basically step into the compilation process (after the fact).
  • [C++26*] Rise of the static reflection(s)
    3 projects | /r/cpp | 24 Jan 2023
    Double not sure whether practical, though, https://github.com/mikael-s-persson/templight approched the problem back in the day
  • Query a compilation database (lsp, ccls, rtags, ...)
    3 projects | /r/emacs | 10 Jul 2021
    Is there a function in lsp-mode, or ccls directly to find the compilation command associated with the file (if any) in the current buffer? If not, would another package (rtags, ede-compdb, irony-cdb) help query the compilation database without needing to use the rest of the package? The main use case is to plug it into other tools such as rmsbolt and templight that "compile" code to provide additional information.

What are some alternatives?

When comparing ut and templight you can also consider the following projects:

Boost.Test - The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)

rmsbolt - pony mode WIP

Catch - A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)

TDD - See while you code

FakeIt - C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.

metashell - C++ metaprogramming shell

doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework

examc - proof of concept C unit test library using linker sections

test - A library for writing unit tests in Dart.

rtags - A c/c++ client/server indexer with for integration with emacs based on clang.

KmTest - Kernel-mode C++ unit testing framework in BDD-style

samples