Skip to content

"Attempted to insert a duplicate test item ID" when modifying tests after running them using testGoldens from golden_toolkit #3776

@DanTup

Description

@DanTup
import 'package:golden_toolkit/golden_toolkit.dart';
import 'package:test/test.dart';

void main() {
  group('foo', () {
    testGoldens('test 1', (tester) async {});
  });
}

Then Test: Run All Tests, wait for results, then try to modify the file (eg. add a new linebreak):

Screenshot 2022-01-11 at 15 16 43

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