Skip to content
This repository

qc - A C port of the QuickCheck unit test framework

branch: master

aspelllint

latest commit 77d3d4f996
Andrew Pennebaker authored March 06, 2014
Octocat-spinner-32 features cucumber and guard January 14, 2014
Octocat-spinner-32 .gitignore valgrind February 14, 2014
Octocat-spinner-32 Gemfile aspelllint March 06, 2014
Octocat-spinner-32 Guardfile regex January 19, 2014
Octocat-spinner-32 Guardfile-cucumber regex January 19, 2014
Octocat-spinner-32 LICENSE.md FreeBSD June 28, 2013
Octocat-spinner-32 Makefile valgrind February 14, 2014
Octocat-spinner-32 README.md aspelllint March 06, 2014
Octocat-spinner-32 Rakefile churn November 06, 2013
Octocat-spinner-32 TODO added TODO September 25, 2011
Octocat-spinner-32 example.c vera++ February 11, 2014
Octocat-spinner-32 example.h vera++ February 11, 2014
Octocat-spinner-32 qc.c vera++ February 11, 2014
Octocat-spinner-32 qc.h vera++ February 11, 2014
README.md

qc - A C port of the QuickCheck unit test framework

EXAMPLE

$ make
clang -O2 -Wall -Wextra -Wmost -Weverything -Wno-pointer-arith -o example example.c qc.c -lgc
./example
+++ OK, passed 100 tests.
*** Failed!
1200315752
*** Failed!
1909203817
287898845
435231224
*** Failed!
'9'
9
*** Failed!
T9^/NeP)Y^k/"-V$DSJ"U/.$vT<ih(|

HOMEPAGE

http://www.yellosoft.us/quickcheck

LICENSE

FreeBSD

REQUIREMENTS

Ubuntu

Example: sudo apt-get install libgc-dev

Windows

Mac OS X

Example: brew install boehmgc

Optional

DEVELOPMENT

Test

Ensure the example script works as expected:

$ bundle
$ cucumber
Feature: Run example tests

  Scenario: Running example tests            # features/run_example_tests.feature:3
    Given the program has finished           # features/step_definitions/steps.rb:1
    Then the output is correct for each test # features/step_definitions/steps.rb:7

1 scenario (1 passed)
2 steps (2 passed)
0m0.091s

Grind

Eliminate memory leaks:

$ make valgrind
...

Spell Check

$ aspelllint
...

Local CI

Guard can automatically run testing when the code changes:

$ bundle
$ guard -G Guardfile-cucumber
...
Something went wrong with that request. Please try again.