From fa030de432fd2c65396e8fa19642656d7574b62e Mon Sep 17 00:00:00 2001 From: Alexander Granin Date: Thu, 28 May 2020 23:48:14 +0700 Subject: [PATCH] Test framework WIP --- lib/Hydra/package.yaml | 8 ++++++-- .../{test => test-framework}/Hydra/Testing/Functional.hs | 0 .../Hydra/Testing/Functional/AppInterpreter.hs | 0 .../Hydra/Testing/Functional/LangInterpreter.hs | 0 .../Hydra/Testing/Functional/TestRuntime.hs | 0 .../Hydra/Testing/Integrational.hs | 0 .../{test => test-framework}/Hydra/Testing/Wrappers.hs | 0 7 files changed, 6 insertions(+), 2 deletions(-) rename lib/Hydra/{test => test-framework}/Hydra/Testing/Functional.hs (100%) rename lib/Hydra/{test => test-framework}/Hydra/Testing/Functional/AppInterpreter.hs (100%) rename lib/Hydra/{test => test-framework}/Hydra/Testing/Functional/LangInterpreter.hs (100%) rename lib/Hydra/{test => test-framework}/Hydra/Testing/Functional/TestRuntime.hs (100%) rename lib/Hydra/{test => test-framework}/Hydra/Testing/Integrational.hs (100%) rename lib/Hydra/{test => test-framework}/Hydra/Testing/Wrappers.hs (100%) diff --git a/lib/Hydra/package.yaml b/lib/Hydra/package.yaml index c284ff2..4328640 100644 --- a/lib/Hydra/package.yaml +++ b/lib/Hydra/package.yaml @@ -114,8 +114,13 @@ dependencies: library: source-dirs: - src + - test-framework ghc-options: - -Wall + dependencies: + - hspec + - hspec-contrib + - QuickCheck tests: @@ -129,7 +134,6 @@ tests: - -with-rtsopts=-N dependencies: - hspec - - HUnit - - QuickCheck - hspec-contrib + - QuickCheck - Hydra diff --git a/lib/Hydra/test/Hydra/Testing/Functional.hs b/lib/Hydra/test-framework/Hydra/Testing/Functional.hs similarity index 100% rename from lib/Hydra/test/Hydra/Testing/Functional.hs rename to lib/Hydra/test-framework/Hydra/Testing/Functional.hs diff --git a/lib/Hydra/test/Hydra/Testing/Functional/AppInterpreter.hs b/lib/Hydra/test-framework/Hydra/Testing/Functional/AppInterpreter.hs similarity index 100% rename from lib/Hydra/test/Hydra/Testing/Functional/AppInterpreter.hs rename to lib/Hydra/test-framework/Hydra/Testing/Functional/AppInterpreter.hs diff --git a/lib/Hydra/test/Hydra/Testing/Functional/LangInterpreter.hs b/lib/Hydra/test-framework/Hydra/Testing/Functional/LangInterpreter.hs similarity index 100% rename from lib/Hydra/test/Hydra/Testing/Functional/LangInterpreter.hs rename to lib/Hydra/test-framework/Hydra/Testing/Functional/LangInterpreter.hs diff --git a/lib/Hydra/test/Hydra/Testing/Functional/TestRuntime.hs b/lib/Hydra/test-framework/Hydra/Testing/Functional/TestRuntime.hs similarity index 100% rename from lib/Hydra/test/Hydra/Testing/Functional/TestRuntime.hs rename to lib/Hydra/test-framework/Hydra/Testing/Functional/TestRuntime.hs diff --git a/lib/Hydra/test/Hydra/Testing/Integrational.hs b/lib/Hydra/test-framework/Hydra/Testing/Integrational.hs similarity index 100% rename from lib/Hydra/test/Hydra/Testing/Integrational.hs rename to lib/Hydra/test-framework/Hydra/Testing/Integrational.hs diff --git a/lib/Hydra/test/Hydra/Testing/Wrappers.hs b/lib/Hydra/test-framework/Hydra/Testing/Wrappers.hs similarity index 100% rename from lib/Hydra/test/Hydra/Testing/Wrappers.hs rename to lib/Hydra/test-framework/Hydra/Testing/Wrappers.hs