Skip to content

class-wide setUp/tearDown methods (using package:test_reflective_loader) jump to the defineReflectiveSuite call instead of their actual locations #5950

Closed
dart-lang/tools
#2341

Description

@DanTup
Image

As far as I can see, there aren't any setup/teardowns for this test, but they show up against this call.

Activity

  1. added this to the v3.132.0 milestone on Mar 2, 2026
  2. added
    in testingRelates to test execution of Dart/Flutter tests for end users
    on Mar 2, 2026
  3. DanTup commented on Mar 2, 2026

    @DanTup
    MemberAuthor

    Could it be related to dart-lang/tools#2164?

    Perhaps we should be passing locations along to those so it goes to the right place (eg. the setUpClass function), but also maybe we shouldn't call setUpAll at all if there isn't a setUpClass.

  4. Peter080202 commented on Mar 9, 2026

    @Peter080202
    Contributor

    @DanTup will tackle this one soon

  5. DanTup commented on Mar 9, 2026

    @DanTup
    MemberAuthor

    @Peter080202 I'm actually looking at this one right now (it'll be a change in package:test_reflective_loader).

  6. changed the title [-]setUpAll/tearDownAll tests show up on the `defineReflectiveSuite` call in Dart SDK[/-] [+]class-wide setUp/tearDown methods (using `package:test_reflective_loader`) jump to the `defineReflectiveSuite` call instead of their actual locations[/+] on Mar 9, 2026
  7. Peter080202 commented on Mar 9, 2026

    @Peter080202
    Contributor

    Ok sure

  8. DanTup commented on Mar 9, 2026

    @DanTup
    MemberAuthor

    I've a PR open at dart-lang/tools#2341

  9. modified the milestones: v3.132.0, v3.134.0 on Mar 23, 2026
  10. modified the milestones: v3.134.0, v3.136.0 on Apr 20, 2026
  11. modified the milestones: v3.136.0, v3.138.0 on May 14, 2026
  12. modified the milestones: v3.138.0, v3.140.0 on Jun 25, 2026
  13. modified the milestones: v3.140.0, On Deck on Jul 28, 2026
  14. DanTup commented on Jul 31, 2026

    @DanTup
    MemberAuthor

    Fixed in test_reflective_loader (dart-lang/tools#2341).

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