Skip to content

Assessments Bloc, Client, Repository, Phase 1 Unit Testing

Closes #49 (closed)

  • Flutter Assessment BloC test
    • Test Cases
    • yield AssessmentsInitial on successful fetching of data
    • yields AssessmentsError on unsuccessful fetching of data
    • yields AssessmentsAdded on successful adding of phase 1
    • yields AssessmentsError when ward name is empty while adding of phase 1 assessments
    • yields AssessmentsError when assessments are not completed while adding of phase 1 assessments

  • AssessmentsRepository testing
    • Test Cases
    • Throws exception if wardname is empty
    • Throws exception if assessments are incomplete
    • Marks phase-1 as complete if everything is correctly filled
    • Adds stage-1 assessments if list is empty

  • Assessment Client Test
    • Test Cases
    • returns response with 200 code on successful fetching of assessments
    • throws fetch data exception on no internet connection
Edited by Darshpreet Singh

Merge request reports