jushutch / swiping_card_deck

A widget for swiping through a deck of cards with gestures or buttons.
https://pub.dev/packages/swiping_card_deck
BSD 3-Clause "New" or "Revised" License
13 stars 10 forks source link

Write unit tests for swiping_gesture_detector.dart #10

Closed jushutch closed 2 years ago

jushutch commented 3 years ago

Currently there are no unit tests for swiping_gesture_detector.dart, but there should be a high quality test suite with line coverage > 80%. Create swiping_gesture_detector_test.dart under the test directory and include widget tests that validate basic behavior for the SwipingGestureDetector widget, such as swiping left, swiping right, swiping threshold and velocity behavior. To generate line coverage, run flutter test --coverage and to view the coverage in a generated webpage, use the genhtml tool.