mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-15 11:40:30 +03:00
Refactor TestCase files into python modules
Convert all TestCase files into standard python modules to be run and discovered by unittest.
This commit is contained in:
parent
4d6682bc70
commit
7ff32bc4b0
34 changed files with 471 additions and 1260 deletions
|
|
@ -170,15 +170,7 @@ test -x ./hooks/pre-commit && ./hooks/pre-commit
|
|||
#------------------------------------------------------------------------------#
|
||||
echo_header "run unit tests"
|
||||
|
||||
cd $WORKSPACE/tests
|
||||
for testcase in $WORKSPACE/tests/*.TestCase; do
|
||||
if [ $(uname) != "Linux" ] && [ $testcase == $WORKSPACE/tests/nightly.TestCase ]; then
|
||||
echo "skipping nightly.TestCase, it currently only works GNU/Linux"
|
||||
continue
|
||||
fi
|
||||
$testcase
|
||||
done
|
||||
|
||||
python3 -m unittest -v
|
||||
|
||||
#------------------------------------------------------------------------------#
|
||||
echo_header "print fdroid version"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue