clove-unit

Single-Header Unit Testing framework for C (interoperable with C++) with test autodiscovery feature

MIT License

Stars
45

Bot releases are hidden (Show)

clove-unit - v2.4.4 Latest Release

Published by fdefelici 6 months ago

New 'clove-unit.h' released: v2.4.4

[Milestone] [Release] [Readme]

Bugfix

  • [Report] Fix issue on run tests report in pretty format where in some corner case the row adjustment didn't produce correct result
clove-unit - v2.4.3

Published by fdefelici 6 months ago

New 'clove-unit.h' released: v2.4.3

[Milestone] [Release] [Readme]

Improvements

  • [Report] Run tests report in pretty format now automatically adjust test result row length to show the full test identifier (Suite.Name) avoiding ellipsing
  • [CommandLine] Improved include / exclude pattern to allow wildcard (* char) usage on both suite name and test name on the same expression (e.g. Suite*.Test*. Documented in the readme).
  • [Spelling] Overall improvements on lexical mistake in code and comments
clove-unit - v2.4.2

Published by fdefelici 10 months ago

New 'clove-unit.h' released: v2.4.2

[Milestone] [Release] [Readme]

What's New

  • [Report] Run Tests in pretty format, now produce filepath and line info so that is compatible with IDE console hyperlink feature
  • [CmdLine] Implemented option -b --base-path to specify tests sources base path and allow to shorten file path in Run and List report in
    any format. (see Readme#command-line-api)
  • [CmdLine] Implemented option -d --run-detail to specify level of detail to use for Run Tests reporting (showing only failed tests, or failed + skipped, or passed+failed+skipped) (see Readme#command-line-api)

Improvements

  • [Report] Add filepath and function line info for skipped tests
  • [Compliance] Improve compilation compliance with compiler flags set at max warning level
  • [Compliance] Addressed minor memory leaks using compiler sanitizer options
clove-unit - v2.4.1

Published by fdefelici 12 months ago

  • Configurable floating-point precision for float/double assertions
  • Removed internal semicolons from assertions macro
  • Align test counter for pretty print report
  • General improvement and more unit testing.

For details see milestione: https://github.com/fdefelici/clove-unit/milestone/5

clove-unit - v2.4.0

Published by fdefelici over 1 year ago

  • cleaner json report in case of FAIL assertion
  • add assertions for size_t data type
  • add extra assertions (GT/GTE/LT/LTE) for all numeric data types
  • update reporting (pretty, csv, json) to support new assertions
clove-unit - v2.3.0

Published by fdefelici about 2 years ago

  • Extend command-api support
  • command for listing and running tests supprting inclusion/exclusion suite/tests
  • add different report format (pretty, csv, json) and ouput (stdout, file)
  • breaking change for VSCode Extension v0.0.8
clove-unit - v2.2.1

Published by fdefelici over 2 years ago

Added command line support to set report type (console, json) and gather clove version

clove-unit - v2.2.0

Published by fdefelici over 2 years ago

  • Reporting: Console, JSON
  • Test, Suite, Run Duration
  • Ellipsing/Escaping string
clove-unit - v2.1.5

Published by fdefelici over 2 years ago

Made clove-unit C++11 compliant

clove-unit - v2.1.4

Published by fdefelici over 2 years ago

Add Cpp Support (by now Cpp 20+ because of the usage of initialization list)

clove-unit - v2.1.3

Published by fdefelici over 2 years ago

MSVC compliance changing sprintf to sprintf_s.
Improved error messages for CLOVE_NULL and CLOVE_NOT_NULL

clove-unit - v2.1.2

Published by fdefelici over 2 years ago

Autodiscovery support for PE, Mach-o, ELF for 64 bit OS (Windows, Mac, Linux) little endian

clove-unit - v2.0.1

Published by fdefelici over 2 years ago

Add gcc compiler compatibilities and fix static char* issue

clove-unit - v2.0.0

Published by fdefelici almost 3 years ago

Added Test Suite concept with setup/teardown feature.
Added Assertion for UINT, LONG, ULONG, LLONG, ULLONG, DOUBLE

clove-unit - v1.0.5

Published by fdefelici almost 3 years ago

Improved perf, added api for assertion: pass, fail and characters

clove-unit - v1.0.4

Published by fdefelici almost 3 years ago

Added string assertion apis

clove-unit - v1.0.3

Published by fdefelici almost 3 years ago

Adde support POSIX suport

clove-unit - v1.0.2

Published by fdefelici almost 3 years ago

Enable Ansi codes for Windows console

clove-unit - v1.0.1

Published by fdefelici almost 3 years ago

reduce memory footprints