Skip to content

The "Run All Tests" command doesn't correctly mark tests as stale/remove them after a run #3058

Closed

Description

@DanTup

Given a test file like:

import 'package:test/test.dart';

void main() {
  test('1', () => expect(true, false));
}

If you:

  • Run with the Dart: Run All Tests command
  • Rename the test to 2
  • Re-run with the Dart: Run All Tests command

The old result for 1 remains in the test tree. Yet if you run the file with F5 or the Run CodeLens from the main function, it correctly is removed.

Possibly this is due to the "is new test run" flag (or the potentially deleted flags) not being set by the Run All Tests command?

Activity

  1. added this to the v3.19.0 milestone on Jan 12, 2021
  2. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Jan 12, 2021
  3. kentcb commented on Feb 2, 2021

    @kentcb

    Thanks for fixing this! 😍 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in testingRelates to test execution of Dart/Flutter tests for end usersis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions