-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dac841
commit c6dbf73
Showing
18 changed files
with
111 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2015-2016, Rudy Matela | ||
Copyright (c) 2015-2017, Rudy Matela | ||
|
||
All rights reserved. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Makefile for FitSpec | ||
# | ||
# Copyright: (c) 2015-2017 Rudy Matela | ||
# License: 3-Clause BSD (see the file LICENSE) | ||
# Maintainer: Rudy Matela <[email protected]> | ||
# | ||
# This is faster than Cabal: | ||
# | ||
# Time Scratch Already compiled | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | __ FitSpec: refining property-sets for functional testing __ | ||
-- | | ||
-- Module : Test.FitSpec | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- __ FitSpec: refining property-sets for functional testing __ | ||
-- | ||
-- FitSpec provides automated assistance in the task of refining test properties | ||
-- for Haskell functions. FitSpec tests mutant variations of functions under test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | Experimental module for deriving 'Mutable' and 'ShowMutable' instances | ||
-- | | ||
-- Module : Test.FitSpec.Derive | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- Experimental module for deriving 'Mutable' and 'ShowMutable' instances | ||
-- | ||
-- Needs GHC and Template Haskell | ||
-- (tested on GHC 7.4, 7.6, 7.8, 7.10 and 8.0) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
-- | Experimental module to generate dotfiles (for graphviz) with implications | ||
-- between property sub-sets. | ||
-- | | ||
-- Module : Test.FitSpec.Dot | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- Experimental module to generate dotfiles (for graphviz) with implications | ||
-- between property sub-sets. | ||
module Test.FitSpec.Dot where | ||
|
||
import Test.FitSpec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | FitSpec: refining property-sets for functional testing | ||
-- | | ||
-- Module : Test.FitSpec.Engine | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- FitSpec: refining property-sets for functional testing | ||
-- | ||
-- This is the main engine, besides "Test.FitSpec.Mutable". | ||
module Test.FitSpec.Engine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | Exports "main" functions for FitSpec. | ||
-- | | ||
-- Module : Test.FitSpec.Main | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- Exports "main" functions for FitSpec. | ||
-- They work exactly by 'report' and 'reportWith' but can be customized by | ||
-- command line arguments. | ||
-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | Enumeration of function mutations | ||
-- | | ||
-- Module : Test.FitSpec.Mutable | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- Enumeration of function mutations | ||
module Test.FitSpec.Mutable | ||
( Mutable (..) | ||
, mutiersEq | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | Mutable instances: septuples up to 12-tuples | ||
-- | | ||
-- Module : Test.FitSpec.Mutable.Tuples | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- Mutable instances: septuples up to 12-tuples | ||
-- | ||
-- This is partly a Hack that allows those instances to be hidden from Haddock. | ||
-- Otherwise Haddock documentation will look very ugly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | A very simple pretty printing library used to generate 'Test.FitSpec' reports. | ||
-- | | ||
-- Module : Test.FitSpec.PrettyPrint | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- A very simple pretty printing library used to generate 'Test.FitSpec' reports. | ||
module Test.FitSpec.PrettyPrint | ||
( beside | ||
, above | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | Generate 'Test.FitSpec' reports. | ||
-- | | ||
-- Module : Test.FitSpec.Report | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- Generate 'Test.FitSpec' reports. | ||
module Test.FitSpec.Report | ||
( report | ||
, reportWith | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | Show mutant variations | ||
-- | | ||
-- Module : Test.FitSpec.ShowMutable | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- Exports a typeclass to show mutant variations. | ||
module Test.FitSpec.ShowMutable | ||
( ShowMutable (..) | ||
, mutantSEq | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | ShowMutable instances: septuples up to 12-tuples | ||
-- | | ||
-- Module : Test.FitSpec.Tuples | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- ShowMutable instances: septuples up to 12-tuples | ||
-- | ||
-- This is partly a Hack that allows those instances to be hidden from Haddock. | ||
-- Otherwise Haddock documentation will look very ugly. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | FitSpec's Test Types: | ||
-- | | ||
-- Module : Test.FitSpec.TestTypes | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- FitSpec's Test Types: | ||
-- 'Nat', | ||
-- 'Int2', 'Int3', 'Int4', | ||
-- 'UInt2', 'UInt3', 'UInt4'. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
-- | General purpose utility functions for FitSpec | ||
-- | | ||
-- Module : Test.FitSpec.Utils | ||
-- Copyright : (c) 2015-2017 Rudy Matela | ||
-- License : 3-Clause BSD (see the file LICENSE) | ||
-- Maintainer : Rudy Matela <[email protected]> | ||
-- | ||
-- General purpose utility functions for FitSpec | ||
{-# LANGUAGE CPP #-} | ||
module Test.FitSpec.Utils | ||
( (...) | ||
|