File: run.sh

package info (click to toggle)
python-pywebview 3.3.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 29,536 kB
  • sloc: python: 5,703; javascript: 888; cs: 130; sh: 55; makefile: 3
file content (73 lines) | stat: -rwxr-xr-x 2,822 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!/bin/bash
PYTHONPATH=..
PYWEBVIEW_LOG='debug'
PYTEST_OPTIONS='-s --disable-pytest-warnings -r w'

cd "${0%/*}"
rm -r __pycache__ || true

exitcode=0
pywebviewtest() {
  pytest "$@" || exitcode=$?
}

pywebviewtest test_bg_color.py::test_bg_color ${PYTEST_OPTIONS}
pywebviewtest test_bg_color.py::test_invalid_bg_color ${PYTEST_OPTIONS}

pywebviewtest test_evaluate_js.py::test_mixed ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_array ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_object ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_string ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_int ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_float ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_undefined ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_null ${PYTEST_OPTIONS}
pywebviewtest test_evaluate_js.py::test_nan ${PYTEST_OPTIONS}

pywebviewtest test_frameless.py ${PYTEST_OPTIONS}
pywebviewtest test_fullscreen.py ${PYTEST_OPTIONS}

pywebviewtest test_get_current_url.py::test_current_url ${PYTEST_OPTIONS}
pywebviewtest test_get_current_url.py::test_no_url ${PYTEST_OPTIONS}

pywebviewtest test_get_elements.py::test_single ${PYTEST_OPTIONS}
pywebviewtest test_get_elements.py::test_multiple ${PYTEST_OPTIONS}
pywebviewtest test_get_elements.py::test_none ${PYTEST_OPTIONS}

pywebviewtest test_http_server.py ${PYTEST_OPTIONS}

pywebviewtest test_js_api.py::test_js_bridge ${PYTEST_OPTIONS}
pywebviewtest test_js_api.py::test_exception ${PYTEST_OPTIONS}
pywebviewtest test_js_api.py::test_concurrent ${PYTEST_OPTIONS}

pywebviewtest test_load_html.py ${PYTEST_OPTIONS}
pywebviewtest test_localization.py ${PYTEST_OPTIONS}
pywebviewtest test_min_size.py ${PYTEST_OPTIONS}

pywebviewtest test_multi_window.py::test_bg_color ${PYTEST_OPTIONS}
pywebviewtest test_multi_window.py::test_load_html ${PYTEST_OPTIONS}
pywebviewtest test_multi_window.py::test_load_url ${PYTEST_OPTIONS}
pywebviewtest test_multi_window.py::test_evaluate_js ${PYTEST_OPTIONS}
pywebviewtest test_multi_window.py::test_js_bridge ${PYTEST_OPTIONS}

pywebviewtest test_noresize.py ${PYTEST_OPTIONS}
pywebviewtest test_on_top.py ${PYTEST_OPTIONS}
pywebviewtest test_set_title.py ${PYTEST_OPTIONS}
pywebviewtest test_resize.py ${PYTEST_OPTIONS}
pywebviewtest test_simple_browser.py ${PYTEST_OPTIONS}
pywebviewtest test_start.py ${PYTEST_OPTIONS}
pywebviewtest test_toggle_fullscreen.py ${PYTEST_OPTIONS}

pywebviewtest test_token.py::test_token ${PYTEST_OPTIONS}
pywebviewtest test_token.py::test_persistance ${PYTEST_OPTIONS}

pywebviewtest test_url_load.py ${PYTEST_OPTIONS}

pywebviewtest test_window.py ${PYTEST_OPTIONS}

pywebviewtest test_wsgi.py ${PYTEST_OPTIONS}

if [ $exitcode != 0 ]; then
  echo -e '\033[0;31mTEST FAILURES HAVE OCCURRED!\033[0m'
  exit 1
fi