MartinKoleff / KareFitnessApp

Android fitness app made in Jetpack Compose.
MIT License
4 stars 0 forks source link

Testing #7

Closed MartinKoleff closed 9 months ago

MartinKoleff commented 10 months ago

Add tests for:

  1. All view models
  2. All use cases
  3. UI tests for all screens / add more previews
  4. Add error handling tests
MartinKoleff commented 9 months ago

UseCases to test: --------------Workout / WorkoutDetails----------------------

  1. GetWorkoutUseCase
    • [x] call workoutDao directly
    • [x] Call use case
    • [ ] Invoke error (invalid id)
  2. GetWorkoutsUseCase
    • [ ] call workoutDao directly
    • [x] Call use case
    • [ ] Invoke error?
  3. GetWorkoutsDetailsUseCase
    • [ ] call workoutDetailsDao directly
    • [x] Call use case
    • [ ] Invoke error (invalid id)
  4. UpdateWorkoutUseCase
    • [ ] call workoutDao directly
    • [ ] Call use case
    • [ ] Invoke error
  5. OnSearchWorkoutUseCase
    • [ ] call workoutDao directly
    • [ ] Call use case
    • [ ] Invoke error
  6. DeleteExerciseUseCase
    • [ ] call workoutDao directly
    • [ ] Call use case
    • [ ] Invoke error
  7. DeleteWorkoutUseCase
    • [ ] call workoutDao directly
    • [ ] Call use case
    • [ ] Invoke error
  8. GetSelectedWorkoutUseCase
    • [ ] call workoutDao directly
    • [ ] Call use case
    • [ ] Invoke error
  9. CreateWorkoutUseCase
    • [ ] call workoutDao directly
    • [ ] Call use case
    • [ ] Invoke error
MartinKoleff commented 9 months ago
MartinKoleff commented 9 months ago

All workout use cases are tested (without onSearch). Exercise use cases and error testing left.

MartinKoleff commented 9 months ago

All exercise use cases are tested.

MartinKoleff commented 9 months ago

To add view model tests and error handling tests in the future.