xrefcheck/ftp-tests/Main.hs
Anton Sorokin b412781020
[#149] Replace hspec with tasty
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 `@?=`
2022-09-25 18:51:41 +03:00

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