sydtest-persistent-postgresql 0.2.0.1 → 0.2.0.2
raw patch · 4 files changed
+17/−2 lines, 4 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Test.Syd.Persistent.Postgresql: postgresqlMigrationSucceedsSpec :: FilePath -> Migration -> Spec
Files
- CHANGELOG.md +6/−0
- src/Test/Syd/Persistent/Postgresql.hs +7/−0
- sydtest-persistent-postgresql.cabal +2/−2
- test/Test/Syd/Persistent/PostgresqlSpec.hs +2/−0
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Changelog +## [0.2.0.2] - 2022-05-05++### Added++* `postgresqlMigrationSucceedsSpec`+ ## [0.2.0.1] - 2022-04-26 ### Added
src/Test/Syd/Persistent/Postgresql.hs view
@@ -8,6 +8,7 @@ connectionPoolSetupFunc, runSqlPool, runPostgresqlTest,+ postgresqlMigrationSucceedsSpec, ) where @@ -66,3 +67,9 @@ -- | A flipped version of 'runSqlPool' to run your tests runPostgresqlTest :: ConnectionPool -> SqlPersistM a -> IO a runPostgresqlTest = runPersistentTest++-- | Test that the given migration succeeds, when applied to the current database.+--+-- See 'Test.Syd.Persistent.migrationsSucceedsSpec" for details.+postgresqlMigrationSucceedsSpec :: FilePath -> Migration -> Spec+postgresqlMigrationSucceedsSpec = migrationsSucceedsSpecHelper connectionPoolSetupFunc
sydtest-persistent-postgresql.cabal view
@@ -5,14 +5,14 @@ -- see: https://github.com/sol/hpack name: sydtest-persistent-postgresql-version: 0.2.0.1+version: 0.2.0.2 synopsis: An persistent-postgresql companion library for sydtest category: Testing homepage: https://github.com/NorfairKing/sydtest#readme bug-reports: https://github.com/NorfairKing/sydtest/issues author: Tom Sydney Kerckhove maintainer: syd@cs-syd.eu-copyright: Copyright (c) 2021 Tom Sydney Kerckhove+copyright: Copyright (c) 2021-2022 Tom Sydney Kerckhove license: OtherLicense license-file: LICENSE.md build-type: Simple
test/Test/Syd/Persistent/PostgresqlSpec.hs view
@@ -9,6 +9,8 @@ spec :: Spec spec = describe "persistPostgresqlSpec" $ do+ postgresqlMigrationSucceedsSpec "test_resources/migration.sql" migrateExample+ persistPostgresqlSpec migrateExample $ do it "can write and read this example person" $ \pool -> runPostgresqlTest pool $ do