Render Vue component templates as part of test script.

Add a command to the test script to output up-to-date Vue component
templates. Most of the Vue component tests rely on HTML templates built
from Jinja.
This commit is contained in:
dandds
2019-09-25 10:10:09 -04:00
parent e0565e5b9a
commit 8d7c7a0d6e
4 changed files with 9 additions and 3 deletions

View File

@@ -45,5 +45,6 @@ if [ "${RUN_PYTHON_TESTS}" = "true" ]; then
fi
if [ "${RUN_JS_TESTS}" = "true" ]; then
run_python_render_vue_component
run_javascript_tests
fi

View File

@@ -19,6 +19,11 @@ run_python_unit_tests() {
return $?
}
run_python_render_vue_component() {
run_command "python -m pytest tests/render_vue_component.py --no-cov --no-print-logs --tb=no -q --disable-warnings"
return $?
}
run_javascript_tests() {
run_command "yarn test:coverage"
return $?