lib: drop hunittests test suite & HUnit dependency
This commit is contained in:
		
							parent
							
								
									cc0cf995b3
								
							
						
					
					
						commit
						d893ed64a5
					
				| @ -2,7 +2,7 @@ | ||||
| -- | ||||
| -- see: https://github.com/sol/hpack | ||||
| -- | ||||
| -- hash: d57b8219639b29c3affb66a7fd2b59fd95ab75cdc827801f6dadc691643bd048 | ||||
| -- hash: 642c6b4607959713188c82341f1050872ec6111a64f8e4b4cc1c1630da585baf | ||||
| 
 | ||||
| name:           hledger-lib | ||||
| version:        1.10.99 | ||||
| @ -104,7 +104,6 @@ library | ||||
|   build-depends: | ||||
|       Decimal | ||||
|     , Glob >=0.9 | ||||
|     , HUnit | ||||
|     , ansi-terminal >=0.6.2.3 | ||||
|     , array | ||||
|     , base >=4.8 && <4.12 | ||||
| @ -203,7 +202,6 @@ test-suite doctests | ||||
|   build-depends: | ||||
|       Decimal | ||||
|     , Glob >=0.7 | ||||
|     , HUnit | ||||
|     , ansi-terminal >=0.6.2.3 | ||||
|     , array | ||||
|     , base >=4.8 && <4.12 | ||||
| @ -303,7 +301,6 @@ test-suite easytests | ||||
|   build-depends: | ||||
|       Decimal | ||||
|     , Glob >=0.9 | ||||
|     , HUnit | ||||
|     , ansi-terminal >=0.6.2.3 | ||||
|     , array | ||||
|     , base >=4.8 && <4.12 | ||||
| @ -342,105 +339,3 @@ test-suite easytests | ||||
|     build-depends: | ||||
|         semigroups ==0.18.* | ||||
|   default-language: Haskell2010 | ||||
| 
 | ||||
| test-suite hunittests | ||||
|   type: exitcode-stdio-1.0 | ||||
|   main-is: hunittests.hs | ||||
|   other-modules: | ||||
|       Hledger | ||||
|       Hledger.Data | ||||
|       Hledger.Data.Account | ||||
|       Hledger.Data.AccountName | ||||
|       Hledger.Data.Amount | ||||
|       Hledger.Data.Commodity | ||||
|       Hledger.Data.Dates | ||||
|       Hledger.Data.Journal | ||||
|       Hledger.Data.Ledger | ||||
|       Hledger.Data.MarketPrice | ||||
|       Hledger.Data.Period | ||||
|       Hledger.Data.PeriodicTransaction | ||||
|       Hledger.Data.Posting | ||||
|       Hledger.Data.RawOptions | ||||
|       Hledger.Data.StringFormat | ||||
|       Hledger.Data.Timeclock | ||||
|       Hledger.Data.Transaction | ||||
|       Hledger.Data.TransactionModifier | ||||
|       Hledger.Data.Types | ||||
|       Hledger.Query | ||||
|       Hledger.Read | ||||
|       Hledger.Read.Common | ||||
|       Hledger.Read.CsvReader | ||||
|       Hledger.Read.JournalReader | ||||
|       Hledger.Read.TimeclockReader | ||||
|       Hledger.Read.TimedotReader | ||||
|       Hledger.Reports | ||||
|       Hledger.Reports.BalanceHistoryReport | ||||
|       Hledger.Reports.BalanceReport | ||||
|       Hledger.Reports.BudgetReport | ||||
|       Hledger.Reports.EntriesReport | ||||
|       Hledger.Reports.MultiBalanceReports | ||||
|       Hledger.Reports.PostingsReport | ||||
|       Hledger.Reports.ReportOptions | ||||
|       Hledger.Reports.ReportTypes | ||||
|       Hledger.Reports.TransactionsReports | ||||
|       Hledger.Utils | ||||
|       Hledger.Utils.Color | ||||
|       Hledger.Utils.Debug | ||||
|       Hledger.Utils.Parse | ||||
|       Hledger.Utils.Regex | ||||
|       Hledger.Utils.String | ||||
|       Hledger.Utils.Test | ||||
|       Hledger.Utils.Text | ||||
|       Hledger.Utils.Tree | ||||
|       Hledger.Utils.UTF8IOCompat | ||||
|       Text.Megaparsec.Custom | ||||
|       Text.Tabular.AsciiWide | ||||
|       Paths_hledger_lib | ||||
|   hs-source-dirs: | ||||
|       ./. | ||||
|       test | ||||
|   ghc-options: -Wall -fno-warn-unused-do-bind -fno-warn-name-shadowing -fno-warn-missing-signatures -fno-warn-type-defaults -fno-warn-orphans | ||||
|   build-depends: | ||||
|       Decimal | ||||
|     , Glob >=0.9 | ||||
|     , HUnit | ||||
|     , ansi-terminal >=0.6.2.3 | ||||
|     , array | ||||
|     , base >=4.8 && <4.12 | ||||
|     , base-compat-batteries >=0.10.1 && <0.11 | ||||
|     , blaze-markup >=0.5.1 | ||||
|     , bytestring | ||||
|     , call-stack | ||||
|     , cmdargs >=0.10 | ||||
|     , containers | ||||
|     , csv | ||||
|     , data-default >=0.5 | ||||
|     , deepseq | ||||
|     , directory | ||||
|     , easytest | ||||
|     , extra | ||||
|     , filepath | ||||
|     , hashtables >=1.2.3.1 | ||||
|     , hledger-lib | ||||
|     , megaparsec >=6.4.1 | ||||
|     , mtl | ||||
|     , mtl-compat | ||||
|     , old-time | ||||
|     , parsec >=3 | ||||
|     , parser-combinators >=0.4.0 | ||||
|     , pretty-show >=1.6.4 | ||||
|     , regex-tdfa | ||||
|     , safe >=0.2 | ||||
|     , split >=0.1 | ||||
|     , tabular >=0.2 | ||||
|     , test-framework | ||||
|     , test-framework-hunit | ||||
|     , text >=1.2 | ||||
|     , time >=1.5 | ||||
|     , transformers >=0.2 | ||||
|     , uglymemo | ||||
|     , utf8-string >=0.3.5 | ||||
|   if (!impl(ghc >= 8.0)) | ||||
|     build-depends: | ||||
|         semigroups ==0.18.* | ||||
|   default-language: Haskell2010 | ||||
|  | ||||
| @ -72,7 +72,6 @@ dependencies: | ||||
| - transformers >=0.2 | ||||
| - uglymemo | ||||
| - utf8-string >=0.3.5 | ||||
| - HUnit | ||||
| - extra | ||||
| - Glob >= 0.9 | ||||
| # for ledger-parse: | ||||
| @ -166,14 +165,6 @@ tests: | ||||
|     # See https://github.com/sol/doctest/issues/199, | ||||
|     # https://ghc.haskell.org/trac/ghc/ticket/15105#comment:10 | ||||
| 
 | ||||
|   hunittests: | ||||
|     main: hunittests.hs | ||||
|     source-dirs: test | ||||
|     dependencies: | ||||
|     - hledger-lib | ||||
|     - test-framework | ||||
|     - test-framework-hunit | ||||
| 
 | ||||
|   easytests: | ||||
|     main: easytests.hs | ||||
|     source-dirs: test | ||||
|  | ||||
| @ -1,14 +0,0 @@ | ||||
| {- | ||||
| Run hledger-lib's HUnit tests using the test-framework test runner,  | ||||
| passing --hide-successes and any additional command line args. | ||||
| -} | ||||
| 
 | ||||
| import System.Environment (getArgs) | ||||
| import Test.Framework.Providers.HUnit (hUnitTestToTests) | ||||
| import Test.Framework.Runners.Console (defaultMainWithArgs) | ||||
| import Hledger (tests_Hledger) | ||||
| 
 | ||||
| main = do | ||||
|   args <- getArgs | ||||
|   let args' = "--hide-successes" : args | ||||
|   defaultMainWithArgs (hUnitTestToTests tests_Hledger) args' | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user