tasty-discover 3.0.0 → 3.0.1
raw patch · 4 files changed
+53/−44 lines, 4 filesdep ~basedep ~containersdep ~directoryPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, containers, directory, filepath
API changes (from Hackage documentation)
Files
- CHANGELOG.md +30/−22
- README.md +4/−4
- tasty-discover.cabal +13/−13
- test/ConfigTest.hs +6/−5
CHANGELOG.md view
@@ -8,16 +8,27 @@ [Keep a Changelog]: http://keepachangelog.com/ [Semantic Versioning]: http://semver.org/ -# 3.0.0 2017-05-03+# 3.0.1 [2017-05-04] +### Fixed+- Fixed CHANGELOG.md rendering for Hackage (see pull request [#106]).+ ### Added-- [#103]: Added `--tree-display` configuration option.+- Add missing --tree-display documentation note (see pull request [#107]). +[#107]: https://github.com/lwm/tasty-discover/pull/107+[#106]: https://github.com/lwm/tasty-discover/pull/106++# 3.0.0 [2017-05-03]++### Added+- Add --tree-display configuration option (see pull request [#103]).+ ### Changed-- [#97]: `case_` is deprecated in favour of `unit_` for HUnit test cases.+- Deprecate `case_` in favour of `unit_` for HUnit test cases (see pull request [#97]). ### Fixed-- [#102]: `--no-module-suffix` incorrectly handling directories.+- Correctly handle sub-directories when using --no-module-suffix (see pull request [#102]). [#97]: https://github.com/lwm/tasty-discover/pull/97 [#102]: https://github.com/lwm/tasty-discover/pull/102@@ -31,11 +42,8 @@ # 2.0.2 [2017-04-13] ### Added-- Change log is in `extra-source-files` now.-- [#96]: README is in `extra-source-files` now.--### Fixed-- [#88]: stylish-haskell automated checking.+- README.md and CHANGELOG.md included for Hackage (see pull request [#96]).+- Re-add stylish-haskell automated checking (see pull request [#88]). [#88]: https://github.com/lwm/tasty-discover/pull/88 [#96]: https://github.com/lwm/tasty-discover/pull/96@@ -43,22 +51,22 @@ ## 2.0.1 [2017-03-18] ### Fixed-- [#86]: Flaky test comparison.+- Fix flaky test comparison (see pull request [#86]). [#86]: https://github.com/lwm/tasty-discover/pull/86 ### Removed-- [#83]: The `Test.Tasty.Type` module.+- Remove the Test.Tasty.Type module (see pull request [#83]). [#83]: https://github.com/lwm/tasty-discover/pull/83 ## 2.0.0 [2017-03-15] ### Added-- Use hpack format.-- Use generator style test discovery from tasty-auto.-- New configuration options: debug, ingredients and module name.-- Unit tests for all functionality.+- Add new hpack format.+- Add generator style test discovery from tasty-auto.+- Add new configuration options: debug, ingredients and module name.+- Add unit tests for all functionality. ### Fixed - Re-license to MIT.@@ -74,33 +82,33 @@ ## 1.1.0 [2017-01-19] ### Added-- `--ignore-module` configuration option.+- Add --ignore-module configuration option. ## 1.0.1 [2017-11-13] ### Added-- Cabal testing on Travis CI.-- Documentation testing on Travis CI.+- Add Cabal and Documentation testing on Travis CI. ### Fixed-- Include missing `extra-source-files`.+- Include missing extra-source-files. - Slim down LICENSE.md and mark as GPL-3 in Cabal file. ## 1.0.0 [2016-11-04] ### Added-- Documentation to RTD.+- Add documentation on RTD. - Release on Hackage and Stackage. ## 0.0.3 [2016-09-20] ### Added-- `--no-module-suffix` configuration option.+- --no-module-suffix configuration option. ## 0.0.2 [2016-02-20] ### Added-- `--module-suffix` configuration option.+- --module-suffix configuration option. ## 0.0.1 [2016-02-13]+ - tasty-discover initial release.
README.md view
@@ -1,6 +1,6 @@ [](https://travis-ci.org/lwm/tasty-discover)-[](http://hackage.haskell.org/package/tasty-discover)-[](https://www.stackage.org/package/tasty-discover/)+[](http://hackage.haskell.org/package/tasty-discover)+[](http://stackage.org/nightly/package/tasty-discover) [](https://raw.githubusercontent.com/lwm/tasty-discover/master/LICENSE) # tasty-discover@@ -20,8 +20,6 @@ # Getting Started -- 5 steps to tasty test discovery satori: - Create a `Tasty.hs` in the `hs-source-dirs` of your test suite. - Set your test suite `main-is` to the `Tasty.hs`.@@ -90,6 +88,7 @@ OPTIONS_GHC -F -pgmF tasty-discover -optF <OPTION> -optF <OPTION>+ -- etc. #-} ``` @@ -98,6 +97,7 @@ - `--no-module-suffix`: Collect all test modules, regardless of module suffix. - `--debug`: Output the contents of the generated module while testing.+ - `--tree-display`: Display the test output results hierarchically. ## With Arguments Example: `{-# OPTIONS_GHC -F -pgmF tasty-discover -optF --moduleSuffix=FooBar #-}`
tasty-discover.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: tasty-discover-version: 3.0.0+version: 3.0.1 synopsis: Test discovery for the tasty framework. description: Automatic test discovery and runner for the tasty framework. Prefix your test case names and tasty-discover will discover, collect and run them. All popular test libraries are covered. Configure once and then just write your tests. Avoid forgetting to add test modules to your Cabal/Hpack files. Tasty ingredients are included along with various configuration options for different use cases. Please see the `README.md` below for how to get started.@@ -32,10 +32,10 @@ library ghc-options: -Wall build-depends:- base >= 4.8 && < 5- , containers >= 0.4- , directory >= 1.1 && < 1.4- , filepath >= 1.3 && < 1.5+ base >= 4.8 && < 5.0+ , containers >= 0.4 && < 1.0+ , directory >= 1.1 && < 2.0+ , filepath >= 1.3 && < 2.0 exposed-modules: Test.Tasty.Config Test.Tasty.Discover@@ -46,10 +46,10 @@ main-is: executable/Main.hs ghc-options: -Wall build-depends:- base >= 4.8 && < 5- , containers >= 0.4- , directory >= 1.1 && < 1.4- , filepath >= 1.3 && < 1.5+ base >= 4.8 && < 5.0+ , containers >= 0.4 && < 1.0+ , directory >= 1.1 && < 2.0+ , filepath >= 1.3 && < 2.0 , tasty-discover default-language: Haskell2010 @@ -60,10 +60,10 @@ test ghc-options: -Wall build-depends:- base >= 4.8 && < 5- , containers >= 0.4- , directory >= 1.1 && < 1.4- , filepath >= 1.3 && < 1.5+ base >= 4.8 && < 5.0+ , containers >= 0.4 && < 1.0+ , directory >= 1.1 && < 2.0+ , filepath >= 1.3 && < 2.0 , base , tasty , tasty-discover
test/ConfigTest.hs view
@@ -1,12 +1,13 @@ {-# OPTIONS_GHC -fno-warn-orphans #-} module ConfigTest where -import Data.List (isInfixOf)-import qualified Data.Map.Strict as M+import Data.List (isInfixOf)+import qualified Data.Map.Strict as M import Test.Tasty.Config-import Test.Tasty.Discover (findTests, generateTestDriver, showTests,- ModuleTree(..), mkModuleTree)-import Test.Tasty.Generator (Test(..), mkTest)+import Test.Tasty.Discover (ModuleTree (..), findTests,+ generateTestDriver, mkModuleTree,+ showTests)+import Test.Tasty.Generator (Test (..), mkTest) import Test.Tasty.HUnit import Test.Tasty.QuickCheck