Add cabal testsuite for hledger-lib.
This commit is contained in:
		
							parent
							
								
									039bfc331b
								
							
						
					
					
						commit
						1cbe6c95b2
					
				| @ -18,12 +18,12 @@ homepage:       http://hledger.org | |||||||
| bug-reports:    http://hledger.org/bugs | bug-reports:    http://hledger.org/bugs | ||||||
| stability:      beta | stability:      beta | ||||||
| tested-with:    GHC==7.2.2, GHC==7.4.2, GHC==7.6.1 | tested-with:    GHC==7.2.2, GHC==7.4.2, GHC==7.6.1 | ||||||
| cabal-version:  >= 1.8 | cabal-version:  >= 1.10 | ||||||
| build-type:     Simple | build-type:     Simple | ||||||
| -- data-dir:       data | -- data-dir:       data | ||||||
| -- data-files: | -- data-files: | ||||||
| -- extra-tmp-files: | -- extra-tmp-files: | ||||||
| -- extra-source-files: | extra-source-files: tests/suite.hs | ||||||
| --   README | --   README | ||||||
| --   sample.ledger | --   sample.ledger | ||||||
| --   sample.timelog | --   sample.timelog | ||||||
| @ -75,11 +75,39 @@ library | |||||||
|                  ,transformers >= 0.2 && < 0.4 |                  ,transformers >= 0.2 && < 0.4 | ||||||
|                  ,utf8-string >= 0.3.5 && < 0.4 |                  ,utf8-string >= 0.3.5 && < 0.4 | ||||||
|                  ,HUnit |                  ,HUnit | ||||||
|  |   default-language: Haskell2010 | ||||||
| 
 | 
 | ||||||
| source-repository head | source-repository head | ||||||
|   type:     git |   type:     git | ||||||
|   location: https://github.com/simonmichael/hledger |   location: https://github.com/simonmichael/hledger | ||||||
| 
 | 
 | ||||||
|  | test-suite tests | ||||||
|  |   type:     exitcode-stdio-1.0 | ||||||
|  |   main-is:  tests/suite.hs | ||||||
|  |   ghc-options: -Wall | ||||||
|  |   build-depends: hledger-lib | ||||||
|  |                , base >= 4.3 && < 5 | ||||||
|  |                , cmdargs | ||||||
|  |                , containers | ||||||
|  |                , csv | ||||||
|  |                , directory | ||||||
|  |                , filepath | ||||||
|  |                , HUnit | ||||||
|  |                , mtl | ||||||
|  |                , old-locale | ||||||
|  |                , old-time | ||||||
|  |                , parsec | ||||||
|  |                , pretty-show | ||||||
|  |                , regex-compat | ||||||
|  |                , regexpr | ||||||
|  |                , safe | ||||||
|  |                , split | ||||||
|  |                , test-framework | ||||||
|  |                , test-framework-hunit | ||||||
|  |                , time | ||||||
|  |                , transformers | ||||||
|  |   default-language: Haskell2010 | ||||||
|  | 
 | ||||||
| -- cf http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html | -- cf http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html | ||||||
| 
 | 
 | ||||||
| -- Additional dependencies: | -- Additional dependencies: | ||||||
|  | |||||||
							
								
								
									
										6
									
								
								hledger-lib/tests/suite.hs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hledger-lib/tests/suite.hs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | |||||||
|  | import Hledger (tests_Hledger) | ||||||
|  | import Test.Framework.Providers.HUnit (hUnitTestToTests) | ||||||
|  | import Test.Framework.Runners.Console (defaultMain) | ||||||
|  | 
 | ||||||
|  | main :: IO () | ||||||
|  | main = defaultMain $ hUnitTestToTests tests_Hledger | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user