Skip to main content

usesmileid_testing 12.3.1-SNAPSHOT.33 copy "usesmileid_testing: ^12.3.1-SNAPSHOT.33" to clipboard
usesmileid_testing: ^12.3.1-SNAPSHOT.33 copied to clipboard

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.

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.

0
likes
145
points
133
downloads

Documentation

API reference

Publisher

verified publishersmileidentity.com

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues

Topics

#kyc #identity-verification #testing

License

MIT (license)

Dependencies

flutter, meta, usesmileid, usesmileid_bridge, usesmileid_platform_interface

More

Packages that depend on usesmileid_testing