Popularity
3.1
Declining
Activity
0.0
Stable
5
3
0
Monthly Downloads: 30
Programming language: Haskell
License: MIT License
Tags:
Testing
proctest alternatives and similar packages
Based on the "Testing" category.
Alternatively, view proctest alternatives based on common mentions on social networks and blogs.
-
hedgehog
Release with confidence, state-of-the-art property testing for Haskell. -
quickcheck-state-machine
Test monadic programs using state machine based models -
curl-runnings
A declarative test framework for quickly and easily writing integration tests against JSON APIs. -
smallcheck
Test your Haskell code by exhaustively checking its properties -
ghc-prof-flamegraph
Generates data to be used with flamegraph.pl from .prof files. -
monad-mock
A Haskell package that provides a monad transformer for mocking mtl-style typeclasses -
test-framework
Framework for running and organising QuickCheck test properties and HUnit test cases -
tasty-hedgehog
Tasty integration for the Hedgehog property testing library -
fuzzcheck
A library for testing monadic code in the spirit of QuickCheck -
should-not-typecheck
A HUnit/hspec assertion to verify that an expression does not typecheck -
quickcheck-arbitrary-adt
Typeclass for generating a list of each instance of a sum type's constructors -
hspec-expectations-json
Hspec expectations on JSON Values -
hspec-golden-aeson
Use tests to monitor changes in Aeson serialization -
tasty-expected-failure
Mark test cases as expected-failure -
test-framework-th
Automagically (using Template Haskell) generates the Haskell-code you need when using HUnit -
tasty-ant-xml
A tasty ingredient to output test results in XML, using the Ant schema. This XML can be consumed by the Jenkins continuous integration framework. -
tasty-rerun
Rerun previous test suite runs to run only failing tests -
test-framework-sandbox
test-sandbox support for the test-framework package
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Promo
www.influxdata.com
Do you think we are missing an alternative of proctest or a related project?
README
proctest
A Haskell library for testing interactive command line programs.
With Proctest you can write beautiful tests, for example testing cat
with hspec:
import Control.Applicative
import Test.Hspec
import Test.HUnit
import Test.Proctest
main = hspec $ describe "cat" $ do
it "prints out what we put in" $ do
-- Start up the program to test
(hIn, hOut, hErr, p) <- run "cat" []
-- Make sure buffering doesn't prevent us from reading what we expect
setBuffering NoBuffering [hIn, hOut]
-- Communicate with the program
hPutStrLn hIn "hello world"
-- Define a convenient wrapper around 'waitOutput'.
--
-- It specifies how long we have to wait
-- (malfunctioning programs shall not block automated testing for too long)
-- and how many bytes we are sure the expected response fits into
-- (malfunctioning programs shall not flood us with garbage either).
let catWait h = asUtf8Str <$> waitOutput (seconds 0.01) 1000 h -- Wait max 10 ms, 1000 bytes
-- Wait a little to allow `cat` processing the input
sleep (seconds 0.00001)
-- Read the response
response <- catWait hOut
-- Test if it is what we want (here using HUnit's 'expectEqual')
response @?= "hello world\n"
Install
cabal install proctest