LogarithmPlotter/scripts/run-tests.sh

18 lines
386 B
Bash
Raw Normal View History

2024-09-18 20:51:23 +00:00
#!/bin/bash
2024-09-18 21:19:00 +00:00
cd "$(dirname "$(readlink -f "$0" || realpath "$0")")/.."
2024-09-18 20:51:23 +00:00
2024-09-29 23:27:30 +00:00
rm -rf build
bash scripts/build.sh
2024-09-18 20:51:23 +00:00
# Run python tests
2024-09-29 23:27:30 +00:00
cp -r runtime-pyside6/tests build/runtime-pyside6
2024-09-29 23:35:24 +00:00
cp -r ci CHANGELOG.md build/runtime-pyside6
cd build/runtime-pyside6 || exit 1
2024-09-18 21:19:00 +00:00
PYTHONPATH="$PYTHONPATH:." pytest --cov=LogarithmPlotter --cov-report term-missing .
2024-09-29 23:35:24 +00:00
cd ../../
# Run js tests
cd common
2024-09-28 01:49:14 +00:00
npm test
2024-09-18 20:51:23 +00:00