Skip to content

Commit

Permalink
Enable concurrent test execution. (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Oct 7, 2023
1 parent 170c6da commit e7b1c8f
Show file tree
Hide file tree
Showing 19 changed files with 856 additions and 783 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,9 @@ jobs:
- name: pull latest postgres image
run: docker pull postgres:latest

# Run all tests with a concurency of "1" to allow each test to run independently.
# This is mainly to prevent `tearDownAll` in `usePostgresDocker` from stoping
# the container while another test is using the container. In other words, each
# test file will call `usePostgresDocker` for container setup and teardown and
# run its test in between. Using concurrency of "1" will ensure this behavior.
# Save coverage information in the "coverage" folder.
# Saves coverage information in the "coverage" folder.
- name: Run tests
run: dart test -j 1 --coverage=coverage
run: dart test --coverage=coverage

# https://www.bradcypert.com/how-to-upload-coverage-to-codecov-for-dart/
- name: Install coverage tools
Expand Down
Loading

0 comments on commit e7b1c8f

Please sign in to comment.