Skip to content

Commit 45a4100

Browse files
feat: allow run skipped tests (#152)
* feat: add run skipped arg * docs: add run skipped description * fix: using same description as cli Co-authored-by: Alejandro Santiago <[email protected]> --------- Co-authored-by: Alejandro Santiago <[email protected]>
1 parent 74b1204 commit 45a4100

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/dart_package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ on:
5555
required: false
5656
type: string
5757
default: "."
58+
run_skipped:
59+
required: false
60+
type: boolean
61+
default: false
5862
secrets:
5963
ssh_key:
6064
required: false
@@ -100,7 +104,7 @@ jobs:
100104
- name: 🧪 Run Tests
101105
run: |
102106
dart pub global activate coverage 1.2.0
103-
dart test -j ${{inputs.concurrency}} --coverage=coverage --platform=${{inputs.platform}} && dart pub global run coverage:format_coverage --lcov ${{(inputs.check_ignore && '--check-ignore') || ''}} --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=${{inputs.report_on}}
107+
dart test -j ${{inputs.concurrency}} --coverage=coverage --platform=${{inputs.platform}} && dart pub global run coverage:format_coverage --lcov ${{(inputs.check_ignore && '--check-ignore') || ''}} --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=${{inputs.report_on}} ${{(inputs.run_skipped && '--run-skipped') || ''}}
104108
105109
- name: 📊 Check Code Coverage
106110
uses: VeryGoodOpenSource/very_good_coverage@v2

site/docs/workflows/dart_package.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ The Dart package workflow consists of the following steps:
9797

9898
**Default** `"vm"`
9999

100+
### `run_skipped`
101+
102+
**Optional** Run skipped tests instead of skipping them.
103+
104+
**Default** `false`
105+
100106
## Secrets
101107

102108
### `ssh_key`

0 commit comments

Comments
 (0)