Skip to content

Commit

Permalink
Replace instructions to prepare test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-agilogy committed Jun 2, 2023
1 parent 9a9e006 commit 0c4bf00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ While developing:

- `./gradlew --continue ktlintFormat` to format code
- `./gradlew koverHtmlReport` to generate and open the test coverage report

To test your code:
- `docker-compose up`
- `./gradlew test`
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ import javax.sql.DataSource

class TimeEntriesRepositoryTest : FunSpec() {

// To execute test in local:
// docker pull postgres
// docker run --name postgres_timetrackingapp -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres

private suspend fun <A> withTestDataSource(database: String? = "test", f: suspend (DataSource) -> A) =
HikariCp.dataSource(
"jdbc:postgresql://localhost:5432/${database ?: ""}",
Expand Down

0 comments on commit 0c4bf00

Please sign in to comment.