@@ -43,8 +43,8 @@ import GHC.Generics (Generic)
4343import Instances ()
4444import System.Directory (getDirectoryContents)
4545import System.FilePath ((</>), takeExtension, takeFileName)
46−import Test.Framework (Test, testGroup)
47−import Test.Framework.Providers.HUnit (testCase)
46+import Test.Tasty (TestTree, testGroup)
47+import Test.Tasty.HUnit (testCase)
4848import Test.HUnit (Assertion, assertBool, assertFailure, assertEqual)
4949import Text.Printf (printf)
5050import UnitTests.NullaryConstructors (nullaryConstructors)
@@ -62,7 +62,7 @@ import qualified SerializationFormatSpec
6262import Data.Aeson.Parser.UnescapeFFI ()
6363import Data.Aeson.Parser.UnescapePure ()
6464
65−tests :: Test
65+tests :: TestTree
6666tests = testGroup "unit" [
6767 testGroup "SerializationFormatSpec" SerializationFormatSpec.tests
6868 , testGroup "ErrorMessages" ErrorMessages.tests
@@ -346,13 +346,13 @@ issue351 = [
346346-- Comparison between bytestring and text encoders
347347------------------------------------------------------------------------------
348348
349−ioTests :: IO [Test]
349+ioTests :: IO [TestTree]
350350ioTests = do
351351 enc <- encoderComparisonTests
352352 js <- jsonTestSuite
353353 return [enc, js]
354354
355−encoderComparisonTests :: IO Test
355+encoderComparisonTests :: IO TestTree
356356encoderComparisonTests = do
357357 encoderTests <- forM testFiles $ \file0 -> do
358358 let file = "benchmarks/json-data/" ++ file0
@@ -412,7 +412,7 @@ unescapeString = do
412412
413413-- JSONTestSuite
414414
415−jsonTestSuiteTest :: FilePath -> Test
415+jsonTestSuiteTest :: FilePath -> TestTree
416416jsonTestSuiteTest path = testCase fileName $ do
417417 payload <- L.readFile path
418418 let result = eitherDecode payload :: Either String Value
@@ -427,7 +427,7 @@ jsonTestSuiteTest path = testCase fileName $ do
427427-- Build a collection of tests based on the current contents of the
428428-- JSONTestSuite test directories.
429429
430−jsonTestSuite :: IO Test
430+jsonTestSuite :: IO TestTree
431431jsonTestSuite = do
432432 let suitePath = "tests/JSONTestSuite"
433433 let suites = ["test_parsing", "test_transform"]
@@ -508,7 +508,7 @@ showOptions =
508508newtype SingleMaybeField = SingleMaybeField { smf :: Maybe Int }
509509 deriving (Eq, Show, Generic)
510510
511−singleMaybeField :: [Test]
511+singleMaybeField :: [TestTree]
512512singleMaybeField = do
513513 (gName, gToJSON, gToEncoding, gFromJSON) <-
514514 [ ("generic", genericToJSON opts, genericToEncoding opts, parse (genericParseJSON opts))