Repository navigation
Add Dart and Flutter - #13
Open
MaurizioSodano wants to merge 5 commits into
Open
MaurizioSodano wants to merge 5 commits into
MaurizioSodano wants to merge 5 commits into
Conversation
Refs #3 Claude-Session: https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS
Refs #3 Claude-Session: https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS
Refs #3 Claude-Session: https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS
_coverage_report raised ValueError when the package was not under --root. The report now goes under target/coverage/<language>/external__<path>/. README documents it and the pubspec.lock rewrite by flutter test. Claude-Session: https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS Closes #5
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Dart (and Flutter) to crapper.
.dartfiles are scored: top-level functions, methods of classes, mixins, extensions, extension types and enums, getters (size), setters (size=), operators (operator +) and factory constructors. Generative constructors, abstract andexternalmembers are not entries; local functions and closures count toward the function that holds them.if,for,while,do,catch/on,?:, eachswitchcase,&&,||,??,?.and collectionif/for.pubspec.yamlplus the path underlib/.flutter test --coveragewhen the package depends onsdk: flutter, otherwisedart test, once per package. RelativeSF:paths are made absolute.--use-existing-coveragealso reads each package'scoverage/lcov.info.*.g.dart,*.freezed.dart,*.mocks.dart, ...),.dart_tool,test/,integration_test/and*_test.dartare skipped._coverage_reportraisingValueErrorwhen a package is outside--root.Tested on a Flutter monorepo (680 Dart files, 3,786 functions, no parse errors, 4.8 s without coverage) and with a real
flutter test --coveragerun.Tests:
tests/test_dart.py,tests/test_dart_coverage.py; suite 169 pass. The one failure,test_project_snapshot_is_readable_as_crap4clj_edn, and theparse_argsCRAP 16 are onmasteralready.Sibling PRs: unclebob/dryer and unclebob/mutator. mutator imports
crapper.dart_coverage, so merge this one first.https://claude.ai/code/session_01L2LePAtan3pdyUWbr64gpS