Skip to content

Tests in test/commands.shard/hermetic/config_test.dart make assertions against globals.analytics without actually injecting a value #162413

Closed

Description

@andrewkolos

Example:

expect(fakeAnalytics.sentEvents, isEmpty);
},
overrides: <Type, Generator>{Usage: () => testUsage},
);

Notice we make an assertion against fakeAnalytics. If you view the full test code, you see this value is never injected into any object (or the context global via testUsingContext's overrides parameter).

Activity

  1. added
    c: tech-debtTechnical debt, code quality, testing, etc.
    P2Important issues not at the top of the work list
    team-toolOwned by Flutter Tool team
    triaged-toolTriaged by Flutter Tool team
    on Jan 29, 2025
  2. self-assigned this
    on Jan 29, 2025
  3. github-actions commented on Feb 18, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.team-toolOwned by Flutter Tool teamtriaged-toolTriaged by Flutter Tool team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions