U-Report is a social messaging tool and data collection system developed by UNICEF to improve citizen engagement, inform leaders, and foster positive change. The program sends polls and alerts to its participants, collecting real-time responses, and subsequently publishes gathered data.
To ensure the the correct behaviour of the story model custom dart class while consuming the story endpoint from U-Report public API, generate mock data to verify the story model works accurately.
Carry out following steps to add a data model test for the custom dart class:
[x] Create a new branch from develop called story-model-custom-test. Hint: git checkout -b new-branchexisting-branch
[x] Navigate to the test/stories directory and open the story_model_test.dart file.
[x] Add your test to the verifyTestData function.
[x] Run the tests in terminal to verify they are all passing using: flutter test
[x] Commit the changes (as a single commit).
[x] Push changes to Github. Hint:git push --set-upstream origin story-model-custom-test
To ensure the the correct behaviour of the story model custom dart class while consuming the story endpoint from U-Report public API, generate mock data to verify the story model works accurately.
Carry out following steps to add a data model test for the custom dart class:
develop
calledstory-model-custom-test
. Hint: git checkout -bnew-branch
existing-branch
test/stories
directory and open thestory_model_test.dart
file.verifyTestData
function.flutter test
git push --set-upstream origin story-model-custom-test