Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guidance on integration testing #61

Open
shocklateboy92 opened this issue Apr 26, 2024 · 0 comments
Open

Guidance on integration testing #61

shocklateboy92 opened this issue Apr 26, 2024 · 0 comments

Comments

@shocklateboy92
Copy link

When we try to run flutter integration tests on any code that uses fl_query, it crashes with the following error:

══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building QueryBuilder<Response<List<String>>, void>(dirty,
state: _QueryBuilderState<Response<List<String>>, void>#86f02(query: null, queryKey:
Instance/GetAllGenreIds(), builder: Closure: (BuildContext, Query<Response<List<String>>, void>) =>
Widget, initial: null, retryConfig: null, refreshConfig: null, jsonConfig: null, onData: null,
onError: null, enabled: true)):
Null check operator used on a null value

The relevant error-causing widget was:
  QueryBuilder<Response<List<String>>, void>
  QueryBuilder:file:///C:/Users/afcha/AppData/Local/Pub/Cache/hosted/pub.dev/fl_query-1.0.0/lib/src/widgets/query_builder.dart:61:12

I see your README mention that y'all haven't had much resources for test coverage, but if you could give some examples/guidance on how other people that consume your library can write tests, that would be much appreciated.

Spotube also doesn't appear to have any integration tests. Are there any other notable projects using fl_query that we could use as an example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant