libgit2/tests-clay
Russell Belfer 8c74d22ebf Extend git_buf with new utility functions and unit tests.
Add new functions to git_buf for:
* initializing a buffer from a string
* joining one or more strings onto a buffer with separators
* swapping two buffers in place
* extracting data from a git_buf (leaving it empty)

Also, make git_buf_free leave a git_buf back in its initted state,
and slightly tweak buffer allocation sizes and thresholds.

Finally, port unit tests to clay and extend with lots of new tests
for the various git_buf functions.
2011-11-27 21:56:44 -08:00
..
buf clay: Merge manually @leto's tests from #485 2011-11-22 01:41:22 +01:00
config config: test saving config to new file 2011-11-26 02:00:18 +01:00
core Extend git_buf with new utility functions and unit tests. 2011-11-27 21:56:44 -08:00
index tests-clay: remove extra semi-colon in clay_libgit2.h, add one to index/rename.c 2011-11-22 01:19:07 -06:00
network Make repo config loading automatic or completely explicit 2011-09-27 14:40:56 +02:00
object Rename git_tree_frompath to git_tree_get_subtree 2011-11-18 01:40:35 +01:00
status Implement p_rename 2011-11-07 20:34:27 +01:00
clay clay: Bump to 0.9.0, add TAP support 2011-11-18 01:40:35 +01:00
clay_libgit2.h Extend git_buf with new utility functions and unit tests. 2011-11-27 21:56:44 -08:00
clay_main.c config: test saving config to new file 2011-11-26 02:00:18 +01:00
clay.h config: test saving config to new file 2011-11-26 02:00:18 +01:00
README.md Update clay instructions to use -vtap 2011-11-18 02:35:46 +01:00

Writing Clay tests for libgit2

For information on the Clay testing framework and a detailed introduction please visit:

https://github.com/tanoku/clay

  • Write your modules and tests. Use good, meaningful names.

  • Mix the tests:

      ./clay -vtap .
    
  • Make sure you actually build the tests by setting:

      BUILD_CLAY=ON
    
  • Test:

      ./build/libgit2_clay
    
  • Make sure everything is fine.

  • Send your pull request. That's it.