Skip to content

Commit 2bce9bb

Browse files
committed
docs: add macOS native unit test command, other commands, a TODO in code coverage workflow
1 parent ab55bc5 commit 2bce9bb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/coverage-badge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
run: |
3737
echo "The code coverage percentage is ${{ steps.coverage-extractor.outputs.COVERAGE }}"
3838
39+
# TODO(EchoEllet): Collect Swift coverage too, https://github.com/CompileKernel/native-image-picker-macos/issues/6
3940
# For a detailed guide, refer to: https://bitspittle.dev/blog/2022/kover-badge
4041
- name: Update dynamic badge gist
4142
uses: schneegans/[email protected]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ This package uses [pigeon](https://pub.dev/packages/pigeon) for platform communi
134134
$ dart run pigeon --input pigeons/messages.dart # To generate the required Dart and host-language code.
135135
$ dart run build_runner build --delete-conflicting-outputs # To generate the mock classes.
136136
$ swift-format format --in-place --recursive macos/native_image_picker_macos/Sources/native_image_picker_macos example/macos/Runner example/macos/RunnerTests example/macos/RunnerUITests # To format the Swift code.
137+
$ dart format . # To format the Dart code.
138+
$ (cd example/macos && xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -quiet) # To run the native macOS unit tests.
139+
$ flutter test # To run the Flutter unit tests.
137140
```
138141

139142
### Resources

0 commit comments

Comments
 (0)