First the error output when I run goldens update:
PS D:\fredgrttsstuff\GithubProjects\flutter_test\expert_test_setup> flutter test --update-goldens
00:03 +0: D:\fredgrttsstuff\GithubProjects\flutter_test\expert_test_setup\test\counter_test.dart: Counter Initial counter value is 0
βββ‘ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK βββββββββββββββββββββββββββββββββββββββββββββββββββββ
The following TestFailure object was thrown running a test:
Expected: exactly one matching node in the widget tree
Actual: _TextFinder:<zero widgets with text "0" (ignoring offstage widgets)>
Which: means none were found but one was expected
When the exception was thrown, this was the stack:
#4 iSeeText (package:bdd_widget_test/step/i_see_text.dart:8:3)
#5 main.. (file:///D:/fredgrttsstuff/GithubProjects/flutter_test/expert_test_setup/test/counter_test.dart:24:13)
(elided one frame from package:stack_trace)
This was caught by the test expectation on the following line:
package:bdd_widget_test/step/i_see_text.dart line 8
The test description was:
Initial counter value is 0
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
00:03 +0 -1: D:\fredgrttsstuff\GithubProjects\flutter_test\expert_test_setup\test\counter_test.dart: Counter Initial counter value is 0 [E]
Test failed. See exception logs above.
The test description was: Initial counter value is 0
00:03 +0 -1: D:\fredgrttsstuff\GithubProjects\flutter_test\expert_test_setup\test\counter_test.dart: Counter Add button increments the counter
βββ‘ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK βββββββββββββββββββββββββββββββββββββββββββββββββββββ
The following assertion was thrown running a test:
The finder "zero widgets with icon "IconData(U+0E047)" (ignoring offstage widgets)" (used in a call
to "tap()") could not find any matching widgets.
When the exception was thrown, this was the stack:
#0 WidgetController._getElementPoint (package:flutter_test/src/controller.dart:902:7)
#1 WidgetController.getCenter (package:flutter_test/src/controller.dart:841:12)
#2 WidgetController.tap (package:flutter_test/src/controller.dart:273:18)
#3 iTapIcon (package:bdd_widget_test/step/i_tap_icon.dart:9:16)
#4 main.. (file:///D:/fredgrttsstuff/GithubProjects/flutter_test/expert_test_setup/test/counter_test.dart:29:13)
(elided one frame from package:stack_trace)
The test description was:
Add button increments the counter
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
00:03 +0 -2: D:\fredgrttsstuff\GithubProjects\flutter_test\expert_test_setup\test\counter_test.dart: Counter Add button increments the counter [E]
Test failed. See exception logs above.
The test description was: Add button increments the counter
00:10 +7 -2: Some tests failed.
PS D:\fredgrttsstuff\GithubProjects\flutter_test\expert_test_setup>
the rep where the expert-est-setup project is at is
https://github.com/fredgrott/flutter_test
I did look at both:
https://github.com/olexale/bdd_widget_test/blob/master/lib/step/i_tap_icon.dart
and
https://github.com/olexale/bdd_widget_test/blob/master/lib/step/i_see_text.dart
things that might stand out:
one has a missing wait in async block
and let's see on null saefy String and IconData fields should they have late modfiers?
The error report does not mentioned nUll os it might not be that.
Any thoughts on what it might be?