Skip to content

chore(amplify_authenticator): run unit tests for amplify_authenticato…#1389

Merged
ragingsquirrel3 merged 1 commit intoaws-amplify:mainfrom
ragingsquirrel3:fix-authenticator-tests
Feb 22, 2022
Merged

chore(amplify_authenticator): run unit tests for amplify_authenticato…#1389
ragingsquirrel3 merged 1 commit intoaws-amplify:mainfrom
ragingsquirrel3:fix-authenticator-tests

Conversation

@ragingsquirrel3
Copy link
Contributor

@ragingsquirrel3 ragingsquirrel3 commented Feb 22, 2022

Description of changes:

This PR adds flutter unit tests for authenticator to circle CI as they appear to be omitted. There is also a little documentation change and melos modification for running all the tests locally.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ragingsquirrel3 ragingsquirrel3 requested a review from a team as a code owner February 22, 2022 22:06
@codecov-commenter
Copy link

codecov-commenter commented Feb 22, 2022

Codecov Report

Merging #1389 (7d2a77f) into main (2cbb142) will decrease coverage by 21.93%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #1389       +/-   ##
===========================================
- Coverage   76.32%   54.39%   -21.94%     
===========================================
  Files         195      264       +69     
  Lines        7676    12011     +4335     
===========================================
+ Hits         5859     6533      +674     
- Misses       1817     5478     +3661     
Flag Coverage Δ
android-unit-tests ∅ <ø> (∅)
flutter-unit-tests 36.64% <ø> (-24.81%) ⬇️
ios-unit-tests 90.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ages/amplify_authenticator/lib/src/utils/list.dart 100.00% <0.00%> (ø)
...henticator/lib/src/enums/confirm_signin_types.dart 11.11% <0.00%> (ø)
...lify_authenticator/lib/src/enums/signup_types.dart 10.00% <0.00%> (ø)
...uthenticator/lib/src/enums/authenticator_step.dart 100.00% <0.00%> (ø)
.../lib/src/l10n/generated/message_localizations.dart 6.25% <0.00%> (ø)
...ib/src/l10n/generated/button_localizations_en.dart 19.04% <0.00%> (ø)
...enticator/lib/src/widgets/social/social_icons.dart 0.00% <0.00%> (ø)
...r/lib/src/mixins/authenticator_username_field.dart 53.42% <0.00%> (ø)
...b/src/l10n/generated/message_localizations_en.dart 0.00% <0.00%> (ø)
...r/lib/src/l10n/generated/button_localizations.dart 87.50% <0.00%> (ø)
... and 59 more

@ragingsquirrel3 ragingsquirrel3 merged commit bb033ba into aws-amplify:main Feb 22, 2022
@ragingsquirrel3 ragingsquirrel3 deleted the fix-authenticator-tests branch February 22, 2022 23:15
HuiSF added a commit that referenced this pull request Mar 11, 2022
* chore: Update issue template to GH form (#1387)

* chore: Update issue template to GH form

* Add N/A for placeholders

* Minor updates

* Minor fixes

* fix(amplify_authenticator): remove use of onInverseSurface to support older flutter versions (#1385)

* remove use of onInverseSurface

* set min flutter version to 2.0.0

* update fallback color

* chore(amplify_authenticator): run unit tests for amplify_authenticator in CI (#1389)

* fix(core): Implement Result in AtomicResult (#1393)

* fix(core): Implement Result in AtomicResult

* Fix AtomicResultTest

* chore: Small QOS additions to bug report template (#1394)

* fix(amplify_authenticator): allow multiple custom attributes in custom forms (#1377)

* add initial category for ui customization

* remove AuthState from the public API

* remove auth bloc from public api

* clean up public api, add docs

* update for consistency, fix typos

* change category name, fix typo

* update install docs

* update package description

* update example project dir

* uncomment example app imports

* update template names

* empty commit to trigger CI

* update how runtime and custom fields are handled

* move runtime fields to SignUpForm

* fix signout button

* Apply suggestions from code review

Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>

* rename includeDefaultFields, update sort

* Update packages/amplify_authenticator/lib/src/widgets/form.dart

Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>

* make _includeDefaultFields private

Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>

* chore: authenticator v0.1.0 (#1402)

* chore: authenticator v0.1.0

* Update packages/amplify_authenticator/pubspec.yaml

Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>

Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>

* chore: adds API for auth integ tests + minor fixes (#1302)

* chore(amplify_authenticator): add more detail to api docs for username (#1403)

* add more detail to api docs for username

* move docs to SignUpFormField

* fix overflow in custom loyout example (#1401)

* chore: rename docs dir to doc (#1406)

* chore(amplify_api): clean up some code to limit analysis infos (#1404)

* fix(datastore): delete default predicate causes deletion failure (#1409)

* fix(datastore): delete default predicate causes deletion failure

* fix save integration test

* Release 4.0.1 version bump (#1418)

* Version bump

* fix changelog 0.4.0 entry

* Add PR #s

* chore: add pub analysis to CI (#1408)

* add pana to ci

* add missing colon

* add install_melos step

* move scope arg

* move exec command to config

* remove pana from melos

* add remaining packages

* address issue in authenticator package

* disable failing packages

* revert change to melos.yaml

* add threshold

* add quotes

* escape quotes

* escape << >>

* escape <<<

* update variable parsing

* update parsing

* remove trailing quote

* add remaining packages

* update variable name, add desc

* adjust thresholds

* decrease api threshold

* chore: remove obsolete integration test driver files (#1395)

* fix(amplify_api): model helpers query predicates correctly translates… (#1417)

* chore(amplify_auth_cognito) federated plugin (#1349)

* chore(auth): fix pubspec urls (#1424)

Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
Co-authored-by: Jordan Nelson <nejrd@amazon.com>
Co-authored-by: Travis Sheppard <tshepp@amazon.com>
Co-authored-by: Jordan Nelson <Jordan.Ryan.Nelson@gmail.com>
Co-authored-by: Dustin Noyes <dustin.noyes.dev@gmail.com>
Co-authored-by: Kyle <kylcheng@gmail.com>
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

Successfully merging this pull request may close these issues.

4 participants