forked from RUCAIBox/RecBole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_test.sh
29 lines (22 loc) · 886 Bytes
/
run_test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
python -m pytest -v tests/metrics
echo "metrics tests finished"
python -m pytest -v tests/config/test_config.py
python -m pytest -v tests/config/test_overall.py
export PYTHONPATH=.
python tests/config/test_command_line.py --use_gpu=False --valid_metric=Recall@10 --metrics="['Recall']" --epochs=200 --learning_rate=0.3
if [ $? -ne 0 ]
then
echo -e "\033[31mFailed in test_command_line.py\033[0m"
fi
echo "config tests finished"
python -m pytest -v tests/evaluation_setting
echo "evaluation_setting tests finished"
python -m pytest -v tests/model/test_model_auto.py
python -m pytest -v tests/model/test_model_manual.py
echo "model tests finished"
python -m pytest -v tests/data/test_dataset.py
python -m pytest -v tests/data/test_dataloader.py
echo "data tests finished"
python -m pytest -v tests/hyper_tuning/test_hyper_tuning.py
echo "hyper_tuning tests finished"