dart-lang / dart-lang/test

Explanation of why no tests ran

Open
#651 6 comments 8 reactions 0 assignees View on GitHub
type-enhancement
Dominant language
Dart
Stars
536
Forks
232
Avg merge
1d 10h
Merged PRs (30d)
10

Description

An excerpt of email by @chalin (emphasis mine):

> pub serve test --port=8080
> Loading source assets...
> Loading angular2, angular2/transform/reflection_remover, test/pub_serve and dart_to_js_script_rewriter transformers...
> Pub "serve" started on http://localhost:8080
> Serving angular_tour_of_heroes test on http://localhost:8080
> Finished compilation. Running tests...
> pub run test --pub-serve=8080
> **No tests ran.**

As I assume it is never the intention of the author to use `pub run test` to run no tests, can test recover and explain why no tests were run? In this particular case it was because all tests were filtered out since the default platform is VM, and all of Patrice's tests were browser based.

I'd like to see:

> No tests ran: The default platform "vm" was used, but tests expected: ["browser"].
>
> See goo.gl/xxx for how to configure the test runner for different platforms.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `pub run test --pub-serve=8080` with tests filtered out by the default VM platform, then read the test runner's no-tests reporting and platform-selection handling. Done means an empty run explains the selected platform and expected platforms, with guidance for configuring the runner.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.