https://github.com/codewars/hspec-formatters-codewars
Hspec formatter for Codewars
https://github.com/codewars/hspec-formatters-codewars
code-runner haskell hspec test-reporting
Last synced: 3 months ago
JSON representation
Hspec formatter for Codewars
- Host: GitHub
- URL: https://github.com/codewars/hspec-formatters-codewars
- Owner: codewars
- License: mit
- Created: 2020-12-08T20:39:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T06:38:34.000Z (about 2 years ago)
- Last Synced: 2025-01-10T05:36:13.376Z (4 months ago)
- Topics: code-runner, haskell, hspec, test-reporting
- Language: Haskell
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Test.Hspec.Formatters.Codewars
Hspec formatter for [Qualified](https://www.qualified.io/) and [Codewars](https://www.codewars.com).
## Usage
Specify `codewars` formatter:
```haskell
-- test/Main.hs
module Main (main) whereimport 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
``````haskell
-- test/Spec.hs
{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --module-name=Spec #-}
```## Development
```shell
stack build
stack test
```