Cgreen Versions Save

A modern, portable, cross-language unit testing and mocking framework for C and C++

1.6.3

7 months ago
  • Fix a problem with capture_parameter on bigendian machines discovered on s390x
  • Add s390x to the Travis build matrix
  • For unexpected calls to mocks, point to the test rather than the mocked function
  • Add instructions on how to make a "quick and dirty" .deb package for local use

1.6.2

1 year ago
  • Fixed a bug in cute_reporter
  • Improve zsh compatibility for completions (manual activation required)

1.6.1

1 year ago

This release contains

  • Add option to use libxml2 as an alternate XML reporter if available
  • Execute side effect constraints last of all constraints in an expect()
  • Updated links to documentation in README
  • Documentation updates

1.6.0

1 year ago
  • Revert use of libbfd introduced in 1.5.0 due to portability issues and Debian deeming it to be a serious bug due to libbfd not having a stable interface (see #302)

1.5.1

2 years ago

This release fixes a problem with the constraint ends_with_string() which randomly failed.

1.5.0

2 years ago
  • Replace piping nm command with calls to libbfd. This adds a compile time dependency on binutils, see README.
  • #285 - cgreen-runner should return non-zero return code if library with tests was not found
  • #287 - Add new constraint to capture an argument to a mock function in a local variable in the test

1.4.1

2 years ago

Added preprocessor definitions for

  • CGREEN_VERSION
  • CGREEN_VERSION_MAJOR
  • CGREEN_VERSION_MINOR
  • CGREEN_VERSION_PATCH

Updated documentation for will_return_by_value().

1.4.0

3 years ago

Release Notes for Cgreen 1.4.0

  • A memory leak in will_return_by_value() has been fixed. The memory required for the struct value that should be returned was not deallocated properly. The fix might result in memory leaks in user code as the memory could previously be accessed by user code. Now responsibility for deallocation is on the user.

  • Now builds on Msys2 native (but not Msys/Mingw32 or 64).

  • xml_reporter output is now quoted as required to allways produce correct XML.

  • Various fixes to bash command completion which is now also installed Both cgreen-runner and cgreen-debug should now complete libraries and tests correctly.

1.3.0

3 years ago

The 1.3.0 release includes the following

  • improvements to the cgreen-mocker and cgreen-debug
  • add a logo
  • use gopt v10.0
  • rename CgreenValueType enums to reduce risk of clashing with client code
  • some fixes for test failing on more exotic machines

1.2.0

4 years ago

Some new features:

  • return_by_value()
  • with_side_effect()

Fixed a few bugs: