Commit 1885fb89 authored by Edsko de Vries's avatar Edsko de Vries
Browse files

Unit tests for the solver

Since we didn't really have a unit test setup for the solver yet, this
introduces some basic tests for solver, as well as tests for independent goals
specifically.
parent d56e1d8a
......@@ -180,6 +180,7 @@ Test-Suite unit-tests
other-modules:
UnitTests.Distribution.Client.Targets
UnitTests.Distribution.Client.Dependency.Modular.PSQ
UnitTests.Distribution.Client.Dependency.Modular.Solver
UnitTests.Distribution.Client.Sandbox
UnitTests.Distribution.Client.UserConfig
build-depends:
......
......@@ -2,11 +2,13 @@ module Main
where
import Test.Tasty
import Test.Tasty.Options
import qualified UnitTests.Distribution.Client.Sandbox
import qualified UnitTests.Distribution.Client.UserConfig
import qualified UnitTests.Distribution.Client.Targets
import qualified UnitTests.Distribution.Client.Dependency.Modular.PSQ
import qualified UnitTests.Distribution.Client.Dependency.Modular.Solver
tests :: TestTree
tests = testGroup "Unit Tests" [
......@@ -18,7 +20,17 @@ tests = testGroup "Unit Tests" [
UnitTests.Distribution.Client.Targets.tests
,testGroup "UnitTests.Distribution.Client.Dependency.Modular.PSQ"
UnitTests.Distribution.Client.Dependency.Modular.PSQ.tests
,testGroup "UnitTests.Distribution.Client.Dependency.Modular.Solver"
UnitTests.Distribution.Client.Dependency.Modular.Solver.tests
]
-- Extra options for running the test suite
extraOptions :: [OptionDescription]
extraOptions = concat [
UnitTests.Distribution.Client.Dependency.Modular.Solver.options
]
main :: IO ()
main = defaultMain tests
main = defaultMainWithIngredients
(includingOptions extraOptions : defaultIngredients)
tests
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment