Skip to content
qc - A C port of the QuickCheck unit test framework
C Ruby CMake Shell Gherkin
Branch: master
Clone or download
Latest commit c23d625 Nov 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
features update editorconfig Nov 11, 2018
lib update editorconfig Nov 11, 2018
.astylerc update editorconfig Aug 4, 2015
.editorconfig update editorconfig Nov 20, 2018
.gitignore gitignore: infer Aug 16, 2016
.node-version update editorconfig Nov 11, 2018
.python-version infer Feb 2, 2016
.splintrc eol Dec 2, 2014
CMakeLists.txt -pedantic -std=c99 Mar 1, 2017
Gemfile update editorconfig Nov 11, 2018
LICENSE.md eol Dec 2, 2014
README.md cmake Apr 4, 2016
TODO update editorconfig Nov 11, 2018
package.json update editorconfig Nov 11, 2018
sample.envrc funk Sep 6, 2017

README.md

qc - a C port of the QuickCheck unit test framework

EXAMPLE

$ cmake . && make

$ bin/example
+++ OK, passed 100 tests.
*** Failed!
1200315752
*** Failed!
1909203817
287898845
435231224
*** Failed!
'9'
9
*** Failed!
T9^/NeP)Y^k/"-V$DSJ"U/.$vT<ih(|

See example.c for more information.

HOMEPAGE

http://www.yellosoft.us/quickcheck

LICENSE

FreeBSD

REQUIREMENTS

Compiler Collection

E.g. from Xcode

E.g. from Apt, Dnf, Homebrew, MinGW, Strawberry Perl

CMake

E.g. brew install cmake

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
...
You can’t perform that action at this time.