stackage/Stackage
Chris Done 45b33ac54d Flexible tests for checkBuildPlan (#375)
@snoyberg Can you confirm that this simple test suite works for you?
I've set this up so that I can then add some cyclic dependencies and add
an occurs check for that, but figured I'd setup tests for some of the
existing invariants first.

Should be like:

    $ cabal test --ghc-options=-O0; cat dist/test/stackage-0.4.0-spec.log
    Building stackage-0.4.0...
    Preprocessing library stackage-0.4.0...
    In-place registering stackage-0.4.0...
    Preprocessing executable 'stackage' for stackage-0.4.0...
    Preprocessing test suite 'spec' for stackage-0.4.0...
    [3 of 4] Compiling Stackage.BuildPlanSpec ( test/Stackage/BuildPlanSpec.hs, dist/build/spec/spec-tmp/Stackage/BuildPlanSpec.o )
    Linking dist/build/spec/spec ...
    Running 1 test suites...
    Test suite spec: RUNNING...
    Test suite spec: PASS
    Test suite logged to: dist/test/stackage-0.4.0-spec.log
    1 of 1 test suites (1 of 1 test cases) passed.
    Test suite spec: RUNNING...

    Stackage.BuildPlan
      simple package set
      bad version range on depdendency fails
      nonexistent package fails to check
      default package set checks ok
    Stackage.CorePackages
      works
      contains known core packages
      getCoreExecutables includes known executables
    Stackage.PackageIndex
      works
      getLatestDescriptions gives reasonable results

    Finished in 14.3302 seconds
    9 examples, 0 failures
    Test suite spec: PASS
    Test suite logged to: dist/test/stackage-0.4.0-spec.log
2015-01-04 22:54:33 +01:00
..
BuildConstraints.hs Flexible tests for checkBuildPlan (#375) 2015-01-04 22:54:33 +01:00
BuildPlan.hs Dependency injection of newBuildPlan (#375) 2015-01-04 22:54:33 +01:00
CheckBuildPlan.hs Flexible tests for checkBuildPlan (#375) 2015-01-04 22:54:33 +01:00
CompleteBuild.hs Dependency injection of newBuildPlan (#375) 2015-01-04 22:54:33 +01:00
Config.hs Remove all old code 2014-12-15 07:49:25 +02:00
CorePackages.hs stylish-haskell cleanup 2014-12-16 09:28:28 +02:00
GithubPings.hs Cleanup in prep of release to Hackage 2014-12-15 08:10:16 +02:00
PackageDescription.hs stylish-haskell cleanup 2014-12-16 09:28:28 +02:00
PackageIndex.hs Possibly fix a path separator issue #372 2014-12-15 13:48:56 +02:00
PerformBuild.hs Add simple verbose mode (-v) for debugging 2014-12-31 22:17:45 +01:00
Prelude.hs Warnings cleanup 2014-12-16 09:24:48 +02:00
ServerBundle.hs unlines in core packages, consumer can handle #68 2014-12-23 12:04:31 +01:00
UpdateBuildPlan.hs Dependency injection of newBuildPlan (#375) 2015-01-04 22:54:33 +01:00
Upload.hs More correct progress tracking 2014-12-24 09:25:50 +02:00