-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: refactor test cases to align with updated coverage options hand…
…ling
- Loading branch information
1 parent
f91bbf6
commit a9044f0
Showing
6 changed files
with
285 additions
and
394 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,25 @@ | ||
defaults: | ||
collect_coverage: | ||
uri: "http://127.0.0.1:8181/" | ||
out: "coverage.json" | ||
connect-timeout: 30 | ||
scope-output: ["lib/"] | ||
resume-isolates: false | ||
include-dart: false | ||
function-coverage: true | ||
branch-coverage: false | ||
wait-paused: true | ||
|
||
format_coverage: | ||
base-directory: "." | ||
bazel-workspace: null | ||
in: "coverage.json" | ||
out: "lcov.info" | ||
package: "." | ||
report-on: ["lib/", "bin/"] | ||
ignore-files: ["test/"] | ||
sdk-root: '.' | ||
workers: 2 | ||
check-ignore: false | ||
bazel: false | ||
verbose: true | ||
lcov: true | ||
pretty-print: false | ||
pretty-print-func: false | ||
pretty-print-branch: false | ||
|
||
test_with_coverage: | ||
package: "." | ||
package-name: "My Dart Package" | ||
out: "test_coverage.json" | ||
port: 8181 | ||
test: "test" | ||
scope-output: ["lib/src/"] | ||
function-coverage: true | ||
branch-coverage: false | ||
out: "coverage" | ||
connect-timeout: 30 | ||
scope-output: ["lib", "src"] | ||
resume-isolates: false | ||
include-dart: false | ||
function-coverage: true | ||
branch-coverage: false | ||
wait-paused: true | ||
base-directory: "." | ||
bazel: false | ||
bazel-workspace: null | ||
in: "coverage.json" | ||
package: "." | ||
package-name: "My Dart Package" | ||
report-on: ["lib", "bin"] | ||
ignore-files: ["test"] | ||
sdk-root: "." | ||
workers: 2 | ||
check-ignore: false | ||
verbose: true | ||
lcov: true | ||
pretty-print: false | ||
pretty-print-func: false | ||
pretty-print-branch: false | ||
test: "test" |
53 changes: 0 additions & 53 deletions
53
pkgs/coverage/test/test_coverage_options/partial_fields.dart
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
pkgs/coverage/test/test_coverage_options/partial_fields1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
out: 'custom_coverage.json' | ||
scope-output: | ||
- 'lib' | ||
- 'test' | ||
resume-isolates: true | ||
function-coverage: false | ||
include-dart: true | ||
connect-timeout: 20 | ||
lcov: false | ||
verbose: false | ||
base-directory: 'src' | ||
ignore-files: | ||
- 'example' | ||
report-on: | ||
- 'lib' | ||
pretty-print: true | ||
pretty-print-func: false | ||
package-name: 'Custom Dart Package' |
20 changes: 20 additions & 0 deletions
20
pkgs/coverage/test/test_coverage_options/partial_fields2.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
scope-output: | ||
- 'lib' | ||
- 'tools' | ||
include-dart: false | ||
branch-coverage: false | ||
wait-paused: false | ||
connect-timeout: 15 | ||
|
||
bazel: true | ||
check-ignore: true | ||
in: 'custom_coverage.json' | ||
out: 'custom_lcov.info' | ||
package: '.' | ||
report-on: | ||
- 'src' | ||
- 'scripts' | ||
sdk-root: './dart-sdk' | ||
|
||
test: 'custom_test' | ||
function-coverage: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters