usesmileid_testing

Test doubles for the Smile ID Flutter SDK. They run your flow in your own integration tests with a scripted subject in front of the camera and an in-process backend, so you can check what your app sends and how it handles each answer.

late UseSmileIDTest smileID;

setUp(() => smileID = UseSmileIDTest(scenario: UseSmileIDTestScenario.selfieHappyPath));
tearDown(() => smileID.close());

// In the flow you build, after your own network and ml blocks:
smileID.install(into: smile);

// After driving the screens:
expect(smileID.server.submissions.single.path, '/v3/registration');

Add it as a dev dependency only. The guide, docs/Testing-Your-Integration.md in the repository, covers the setup, the members and the scenarios.

License

MIT — see LICENSE.

Libraries

usesmileid_testing
Test doubles for the Smile ID Flutter SDK: run your flow in your own tests with a scripted subject in front of the camera and an in-process backend.