mirror of
https://github.com/serokell/xrefcheck.git
synced 2024-09-11 21:47:20 +03:00
Problem: `hspec` and `tasty` are testing frameworks with almost same functionality, for historical reasons in xrefcheck we used different frameworks for tests and links-tests, and in Serokell we prefer `tasty` now. Solution: use only `tasty`, rewrite code that use `hspec` using correspondance between - `testGroup` and `describe` - `testCase` and `it` - `shouldBe` and `@?=`
22 lines
509 B
Haskell
22 lines
509 B
Haskell
-- SPDX-FileCopyrightText: 2021 Serokell <https://serokell.io>
|
|
--
|
|
-- SPDX-License-Identifier: MPL-2.0
|
|
|
|
module Main
|
|
( main
|
|
) where
|
|
|
|
import Universum
|
|
|
|
import Test.Tasty (defaultIngredients, defaultMainWithIngredients, includingOptions)
|
|
import Test.Tasty.Ingredients (Ingredient)
|
|
|
|
import Test.Xrefcheck.FtpLinks (ftpOptions)
|
|
import Tree (tests)
|
|
|
|
main :: IO ()
|
|
main = tests >>= defaultMainWithIngredients ingredients
|
|
|
|
ingredients :: [Ingredient]
|
|
ingredients = includingOptions ftpOptions : defaultIngredients
|