Comments (6)
Any updates on this? Being able to run just coverage instead of tests+coverage would allow us to shave 9 minutes off our CI build. Which would be really nice
Could we do something like grep the logs for that error message and set the exit code accordingly? A little hacky, but we should be fine as long as we have solid test coverage.
from dart_dev.
@maxwellpeterson-wf We are running each of our 5 test entry points separately, since combining them results in test loading timeouts (see dart-lang/test#390).
Running in the background is a good idea; we'll give that a whirl, thanks! Hopefully that'll give us a decent speedup.
from dart_dev.
@greglittlefield-wf are you using a test entry points (unit_tests.dart
, integration_tests.dart
) or is each file being loaded into coverage separately? That's a big area for improvement if not.
Besides that, you could look into running coverage in the background: https://github.com/Workiva/tasker-ui/blob/master/smithy.yaml#L17
from dart_dev.
@greglittlefield-wf even if this issue was fixed, I still wouldn't recommend relying on the coverage run alone. Historically it's been too brittle and I'm not as confident in it as I am the test package.
from dart_dev.
from dart_dev.
As an update, trying to run coverage/tests at the same time or separately during other parts of the build result in slowdowns that lead to that same timeout issue :(.
from dart_dev.
Related Issues (20)
- CP-2571 V2: test
- CP-2612 V2: sort-imports HOT 1
- WP-4366 CP-2977 V2: sort-pubspec HOT 2
- CP-3228 Use test runner when collecting coverage HOT 5
- CP-3313 --check should verify contents of generated HTML for gen-test-runner task HOT 2
- WP-3990 CP-3341 hasImmediateDependency() fails for pubspec.yaml with empty "dependencies" map HOT 2
- WP-3821 CP-3449 Possible Task Runner Improvements HOT 5
- WP-3786 Tests for onError handlers in the Reporter HOT 2
- WP-3794 Full depth traversal option HOT 2
- WP-4856 Ability to specify web-compiler flag Pub server spun up by ddev test HOT 2
- WP-4900 Passing options to `pub run test` requires manually specifying test files HOT 6
- CPLAT-15837 dart_dev coverage is not running with checked mode enabled HOT 4
- WP-5676 Intermittent failures in CI with ` pub run dart_dev format --check` HOT 2
- WP-5770 Ability to generate HTML companion files for each individual test suite HOT 2
- CPLAT-5205 Corner case : dart_dev will fail when pubspec has no dependencies HOT 2
- Add watch capability to any tool
- Remove authors field from pubspec once Dart 2.7.0 is released
- dart_dev fails for alternative package structure HOT 2
- migrate to null-safety HOT 1
- Automatically serve on an open port
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart_dev.