Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Guidance on integration testing #61

Description

@shocklateboy92

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions