Open bdlukaa opened 1 year ago
Added the Flutter Analysis/tests
workflow. Now, every test under the test
folder will run on every pull-request, merge or release.
Some of the unit tests are:
checkServerCredentials
getDevices
getEvents
ptz
List<Server>.findDevice(<id>)
Iterable<Device>.sorted
according to the parameters
Some errors are sneaky (like #127) and lead to unexpected crashes. These errors and crashes could be easily avoided with unit tests. In the future, widget testing could also be implemented.
Additional context
flutter_test