-
I have a very simple Test which should produce an assertion error because "DOES NOT EXIST" does not exist in the widget tree:
Now, while the Manager UI (convenient_test_manager) properly detects the missing widget and prints the assertion failure the CLI version for CI
What am I doing wrong? AND: observing the logs in a CI build, what is the best trigger to detect a successful testrun or a failed testrun? The manager logs are full of debug messages etc. It is very difficult to actually identify what went wrong with regards to test assertions. How can I turn debug logging off for example? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
That looks like a bug! If you only have one test,
By nonzero exit code, it is a failed run
The option to control it is in https://github.com/fzyzcjy/flutter_convenient_test/blob/c24191d1298b1f969b2053b8b98891d58161cf15/packages/convenient_test_common_dart/lib/src/common_dart/front_log.dart#L16C10-L16C10. Feel free to PR to make it configurable from outside! (Or hack the code and modify it directly) |
Beta Was this translation helpful? Give feedback.
-
Ok, for everyone interested. Here is the solution to avoid the
|
Beta Was this translation helpful? Give feedback.
Ok, for everyone interested. Here is the solution to avoid the
onError
problem and endless headless runs. Simply backup & restore theonError
handler in yourConvenientTestSlot
override: