Questions tagged [hspec]

hspec is a behavior-driven Development for Haskell. It is a testing framework for Haskell.

Hspec is a testing framework for Haskell. It is roughly based on the Ruby library RSpec. Some of Hspec's distinctive features are:

  • A friendly DSL for defining tests
  • integration with QuickCheck, SmallCheck, and HUnit
  • parallel test execution
  • automatic discovery of test files

For more details click here

77 questions
0
votes
0 answers

How can I run a single test in my Yesod app?

Yesod provides the yesod test tool. A test is a value of type Spec which can be executed by hspec. The scaffolding comes with a predefined spec in tests/HomeTest.hs which is explicitly called in tests/main.hs, the file that is apparently compiled…
sjy
  • 2,702
  • 1
  • 21
  • 22
0
votes
1 answer

Cabal test producing errors for Haskell

My Main.hs file takes in commandline arguments: module Main (toLowerStr, Result(..), grade, main) where ... grade :: [String] -> String -> String -> (Bool, Result, [Highlight]) grade dictWords correctAnswer studentAnswer = …
wrongusername
  • 18,564
  • 40
  • 130
  • 214
1 2 3 4 5
6