The tasty-program package

[Tags: bsd3, library]

This package provides a function that extends tasty testing framework with capability to test whether an external program runs successfully. This package is inspired by test-framework-program package by Adam Wick. tasty-program provides basic functionality of running a program with specified set of command line parameters, and optionally a working directory, and checking the exit code. Program's output and error streams are ignored.


[Skip to ReadMe]

Properties

Versions1.0.0, 1.0.1, 1.0.2, 1.0.3
Change logNone available
Dependenciesbase (>=4.7 && <4.9), deepseq, directory, filepath, process, tasty (>=0.8) [details]
LicenseBSD3
CopyrightJan Stolarek, 2014
AuthorJan Stolarek
Maintainerjan.stolarek@p.lodz.pl
Stabilityexperimental
CategoryTesting
Home pagehttps://github.com/jstolarek/tasty-program
Bug trackerhttps://github.com/jstolarek/tasty-program/issues
Source repositoryhead: git clone git://github.com/jstolarek/tasty-program.git
UploadedFri May 15 09:12:13 UTC 2015 by JanStolarek
DistributionsNixOS:1.0.3
Downloads517 total (26 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Last success reported on 2015-05-21 [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for tasty-program-1.0.3

tasty-program

This package provides a function that extends tasty testing framework with capability to test whether an external program runs successfully. This package is inspired by test-framework-program package by Adam Wick.

tasty-program provides basic functionality of running a program with specified set of command line parameters, and optionally a working directory, and checking the exit code. Program's output and error streams are ignored.

You can download latest stable release from Hackage

Example

Given foo.hs source file:

module Foo where

foo :: Int
foo = 5

you can test whether GHC can compile it:

module Main (
  main
 ) where

import Test.Tasty
import Test.Tasty.Program

main :: IO ()
main = defaultMain $ testGroup "Compilation with GHC" $ [
    testProgram "Foo" "ghc" ["-fforce-recomp", "foo.hs"] Nothing
  ]