Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 705 Bytes

README.md

File metadata and controls

36 lines (26 loc) · 705 Bytes

Test.Hspec.Formatters.Codewars

Hspec formatter for Qualified and Codewars.

Usage

Specify codewars formatter:

-- test/Main.hs
module Main (main) where

import Test.Hspec.Runner
import Test.Hspec.Formatters.Codewars (newFormatter)
import Test.Hspec.Core.Formatters.V2 (formatterToFormat)

import qualified Spec

main :: IO ()
main = do
  codewars <- newFormatter
  runSpec Spec.spec defaultConfig {configFormat = Just $ formatterToFormat codewars}
  >>= evaluateSummary
-- test/Spec.hs
{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --module-name=Spec #-}

Development

stack build
stack test