Skip to content

Commit

Permalink
build: add script for running unittests on local
Browse files Browse the repository at this point in the history
  • Loading branch information
cevheri committed Dec 1, 2024
1 parent 14e3f5e commit 4125787
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scripts/run_unittests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

#dart pub global activate fvm
#export PATH="$PATH":"$HOME/.pub-cache/bin"
fvm use 3.24.5

fvm flutter clean
fvm flutter pub get

fvm dart run build_runner build --delete-conflicting-outputs
fvm dart run intl_utils:generate

# when flutter analyze issue found then exit
fvm flutter analyze
if [ $? -ne 0 ]; then
echo "Flutter analyze found issues. Exiting."
exit 1
fi

fvm flutter test --coverage
if [ $? -ne 0 ]; then
echo "Flutter test found issues. Exiting."
exit 1
fi

0 comments on commit 4125787

Please sign in to comment.