mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-25 19:31:44 +03:00
lib: move easytest tests to lib, depend on released version
This commit is contained in:
parent
0b6b5013eb
commit
6aa35b5cb8
@ -2,7 +2,7 @@
|
||||
--
|
||||
-- see: https://github.com/sol/hpack
|
||||
--
|
||||
-- hash: e19a6e513d9933c42207c22788118878eede237f4ec6f1fdc70983da44c8291d
|
||||
-- hash: 0dda6f4ef72b1a815284abd47c8dfefe75812e2e91900581bd7837dd587533d4
|
||||
|
||||
name: hledger-lib
|
||||
version: 1.5.99
|
||||
@ -223,6 +223,96 @@ test-suite doctests
|
||||
Paths_hledger_lib
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite easytests
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: easytests.hs
|
||||
hs-source-dirs:
|
||||
./.
|
||||
tests
|
||||
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
|
||||
, HUnit
|
||||
, ansi-terminal >=0.6.2.3
|
||||
, array
|
||||
, base >=4.8 && <5
|
||||
, base-compat >=0.8.1
|
||||
, blaze-markup >=0.5.1
|
||||
, bytestring
|
||||
, cmdargs >=0.10
|
||||
, containers
|
||||
, csv
|
||||
, data-default >=0.5
|
||||
, deepseq
|
||||
, directory
|
||||
, easytest
|
||||
, extra
|
||||
, filepath
|
||||
, hashtables >=1.2
|
||||
, hledger-lib
|
||||
, megaparsec >=5.0
|
||||
, mtl
|
||||
, mtl-compat
|
||||
, old-time
|
||||
, parsec >=3
|
||||
, pretty-show >=1.6.4
|
||||
, regex-tdfa
|
||||
, safe >=0.2
|
||||
, semigroups
|
||||
, split >=0.1
|
||||
, text >=1.2
|
||||
, time >=1.5
|
||||
, transformers >=0.2
|
||||
, uglymemo
|
||||
, utf8-string >=0.3.5
|
||||
other-modules:
|
||||
Hledger
|
||||
Hledger.Data
|
||||
Hledger.Data.Account
|
||||
Hledger.Data.AccountName
|
||||
Hledger.Data.Amount
|
||||
Hledger.Data.AutoTransaction
|
||||
Hledger.Data.Commodity
|
||||
Hledger.Data.Dates
|
||||
Hledger.Data.Journal
|
||||
Hledger.Data.Ledger
|
||||
Hledger.Data.MarketPrice
|
||||
Hledger.Data.Period
|
||||
Hledger.Data.Posting
|
||||
Hledger.Data.RawOptions
|
||||
Hledger.Data.StringFormat
|
||||
Hledger.Data.Timeclock
|
||||
Hledger.Data.Transaction
|
||||
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.EntriesReport
|
||||
Hledger.Reports.MultiBalanceReports
|
||||
Hledger.Reports.PostingsReport
|
||||
Hledger.Reports.ReportOptions
|
||||
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.Compat
|
||||
Paths_hledger_lib
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite hunittests
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: hunittests.hs
|
||||
|
@ -139,12 +139,14 @@ library:
|
||||
# - Ledger.Parser.Text
|
||||
|
||||
tests:
|
||||
|
||||
doctests:
|
||||
main: doctests.hs
|
||||
source-dirs: tests
|
||||
dependencies:
|
||||
- doctest >=0.8
|
||||
- Glob >=0.7
|
||||
|
||||
hunittests:
|
||||
main: hunittests.hs
|
||||
source-dirs: tests
|
||||
@ -152,3 +154,10 @@ tests:
|
||||
- hledger-lib
|
||||
- test-framework
|
||||
- test-framework-hunit
|
||||
|
||||
easytests:
|
||||
main: easytests.hs
|
||||
source-dirs: tests
|
||||
dependencies:
|
||||
- hledger-lib
|
||||
- easytest
|
||||
|
@ -2,8 +2,7 @@
|
||||
-- Run tests using project's resolver, whenever ghcid is happy.
|
||||
--
|
||||
-- Experimental tests using easytest, an alternative to hunit (eg).
|
||||
-- https://github.com/joelburget/easytest
|
||||
-- https://hackage.haskell.org/package/easytest-0.1/candidate
|
||||
-- https://hackage.haskell.org/package/easytest
|
||||
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
|
@ -14,7 +14,4 @@ packages:
|
||||
- hledger-api
|
||||
|
||||
extra-deps:
|
||||
# for tools/easytest.hs. Should be harmless otherwise.
|
||||
#- git: git@github.com:joelburget/easytest.git
|
||||
- git: https://github.com/joelburget/easytest.git
|
||||
commit: 5d5b851e77368071b5727cd366af9c6ecd288add
|
||||
- easytest-0.1
|
||||
|
Loading…
Reference in New Issue
Block a user