blob: bd870004095237ae7901e2fed053def75043d87c [file] [log] [blame]
Dan McGregorfeaee262016-11-29 07:41:27 -06001#!/usr/bin/env bash
Han-Wen Nienhuys9746c952016-10-27 10:44:41 +02002
David Ostrovsky402274a2019-09-02 00:38:19 +02003bazel_bin=$(which bazelisk 2>/dev/null)
David Ostrovskya07a8242019-08-30 07:53:08 +02004if [[ -z "$bazel_bin" ]]; then
5 echo "Warning: bazelisk is not installed; falling back to bazel."
6 bazel_bin=bazel
7fi
8
Ben Rohlfs6e594602020-09-11 12:11:14 +02009# At least temporarily we want to know what is going on even when all tests are
10# passing, so we have a better chance of debugging what happens in CI test runs
11# that were supposed to catch test failures, but did not.
Frank Borden5e527822022-09-09 12:24:59 +020012# Run type checker before testing
13${bazel_bin} build //polygerrit-ui/app:compile_pg_with_tests && \
David Ostrovskya07a8242019-08-30 07:53:08 +020014${bazel_bin} test \
Han-Wen Nienhuys9746c952016-10-27 10:44:41 +020015 "$@" \
Ben Rohlfs6e594602020-09-11 12:11:14 +020016 --test_verbose_timeout_warnings \
17 --test_output=all \
Frank Bordene6e44302022-09-08 13:53:08 +020018 //polygerrit-ui:web-test-runner