Skip to content

Commit 209f705

Browse files
Rewrite tests with skeletest
1 parent 8907c3f commit 209f705

15 files changed

+1609
-1675
lines changed

package.yaml

+5-9
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license: BSD3
1010
extra-source-files:
1111
- CHANGELOG.md
1212
- README.md
13-
- test/goldens/**/*.golden
13+
- test/**/*.snap.md
1414

1515
ghc-options: -Wall -Wcompat -Wunused-packages
1616

@@ -44,26 +44,22 @@ tests:
4444
persistent-mtl-test:
4545
source-dirs: test
4646
main: Main.hs
47-
ghc-options: -F -pgmF=tasty-autocollect
47+
ghc-options: -F -pgmF=skeletest-preprocessor
4848
build-tools:
49-
- tasty-autocollect:tasty-autocollect
49+
- skeletest:skeletest-preprocessor
5050
dependencies:
5151
- base
5252
- bytestring
5353
- conduit
5454
- containers
55-
- esqueleto >= 3.5.4.1
56-
- explainable-predicates >= 0.1.2.0
55+
- esqueleto >= 3.5.14.0
5756
- monad-logger
5857
- persistent
5958
- persistent-mtl
6059
- persistent-postgresql >= 2.13.0.0
6160
- persistent-sqlite >= 2.13.0.3
6261
- resource-pool
6362
- resourcet
64-
- tasty
65-
- tasty-autocollect >= 0.2.0.0
66-
- tasty-golden
67-
- tasty-hunit
63+
- skeletest >= 0.2.1
6864
- text
6965
- unliftio

persistent-mtl.cabal

+9-14
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ build-type: Simple
1919
extra-source-files:
2020
CHANGELOG.md
2121
README.md
22-
test/goldens/persistent-2.13/sqlqueryrep_show_representation.golden
23-
test/goldens/persistent-2.14/sqlqueryrep_show_representation.golden
22+
test/__snapshots__/SqlQueryRepSpec.snap.md
2423

2524
source-repository head
2625
type: git
@@ -69,36 +68,32 @@ test-suite persistent-mtl-test
6968
other-modules:
7069
Example
7170
Generated
72-
IntegrationTest
73-
MockedTest
74-
READMETest
75-
SqlQueryRepTest
71+
IntegrationSpec
72+
MockedSpec
73+
READMESpec
74+
SqlQueryRepSpec
7675
TestUtils.DB
7776
TestUtils.Esqueleto
7877
Paths_persistent_mtl
7978
hs-source-dirs:
8079
test
81-
ghc-options: -Wall -Wcompat -Wunused-packages -F -pgmF=tasty-autocollect
80+
ghc-options: -Wall -Wcompat -Wunused-packages -F -pgmF=skeletest-preprocessor
8281
build-tool-depends:
83-
tasty-autocollect:tasty-autocollect
82+
skeletest:skeletest-preprocessor
8483
build-depends:
8584
base
8685
, bytestring
8786
, conduit
8887
, containers
89-
, esqueleto >=3.5.4.1
90-
, explainable-predicates >=0.1.2.0
88+
, esqueleto >=3.5.14.0
9189
, monad-logger
9290
, persistent
9391
, persistent-mtl
9492
, persistent-postgresql >=2.13.0.0
9593
, persistent-sqlite >=2.13.0.3
9694
, resource-pool
9795
, resourcet
98-
, tasty
99-
, tasty-autocollect >=0.2.0.0
100-
, tasty-golden
101-
, tasty-hunit
96+
, skeletest >=0.2.1
10297
, text
10398
, unliftio
10499
default-language: Haskell2010

stack.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
resolver: nightly-2025-02-28
22

3+
extra-deps:
4+
- skeletest-0.2.1
5+
36
ghc-options:
47
'$locals': -Werror

stack.yaml.lock

+8-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
# For more information, please see the documentation at:
44
# https://docs.haskellstack.org/en/stable/topics/lock_files
55

6-
packages: []
6+
packages:
7+
- completed:
8+
hackage: skeletest-0.2.1@sha256:9b7452da1e4ce15890ec2e0a2281cea907015632b0428247e367b82df0ce2e78,3797
9+
pantry-tree:
10+
sha256: 7abf90cdf28bc734c0376bbb7340f70ec15c00e9a7df4aa6d567e467109f3bbd
11+
size: 4320
12+
original:
13+
hackage: skeletest-0.2.1
714
snapshots:
815
- completed:
916
sha256: 3bb3bbc6f68f86bbaed30c8f5644f9f39baf255f2723620172098bb64550100d

0 commit comments

Comments
 (0)