Skip to content

Updated tkltest-ui docker file to install chromedriver #660

Updated tkltest-ui docker file to install chromedriver

Updated tkltest-ui docker file to install chromedriver #660

Workflow file for this run

name: TackleTest-UI CI
on:
push:
paths-ignore:
- 'tkltest/unit/**'
- 'tkltest-lib/pom.xml'
- 'doc/**'
- 'experiment/**'
- 'setup/tkltestunit**'
- 'test/unit/**'
- '.github/workflows/tkltest_unit_ci.yml'
- '.github/workflows/release**'
- '.gitattributes'
- '.gitignore'
- '**.md'
pull_request:
paths-ignore:
- 'tkltest/unit/**'
- 'tkltest-lib/pom.xml'
- 'doc/**'
- 'experiment/**'
- 'setup/tkltestunit**'
- 'test/unit/**'
- '.github/workflows/tkltest_unit_ci.yml'
- '.github/workflows/release**'
- '.gitattributes'
- '.gitignore'
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Install prerequisites
run: |
sudo apt-get -qq update
sudo apt-get -qq install -y libgtk2.0-0 chromium-chromedriver
sudo npm install -g bats
bats --version
chromedriver --version
- name: Download Java libraries
run: |
cd tkltest-lib
./download_lib_jars_ui.sh
cd ..; ls tkltest-lib/*
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
- name: Pull test webapps
run: |
git submodule init
git submodule update
- name: Install tkltest-ui command
run: |
python -m venv venv
source venv/bin/activate
cp setup/tkltestui.setup.py ./setup.py
pip install .
which tkltest-ui
# - name: Run labeling unit tests
# run: |
# source venv/bin/activate
# nosetests test/ui/heuristic_labels_test.py
- name: Run tkltest-ui help/config tests
run: |
source venv/bin/activate
bats --print-output-on-failure test/ui/test_cli.bats
- name: Run tkltest-ui generate/execute tests - petclinic
run: |
source venv/bin/activate
bats --print-output-on-failure test/ui/test_cli_petclinic.bats
- name: Run tkltest-ui generate/execute tests - addressbook
run: |
source venv/bin/activate
bats --print-output-on-failure test/ui/test_cli_addressbook.bats
- name: Run tkltest-ui help/config tests using docker-compose
run: |
bats --print-output-on-failure test/ui/test_cli_docker.bats
# - name: Run tkltest-ui generate/execute tests using docker-compose - petclinic
# run: |
# bats test/ui/test_cli_docker_petclinic.bats
- name: Run tkltest-ui generate/execute tests using docker-compose - addressbook
run: |
bats --print-output-on-failure test/ui/test_cli_docker_addressbook.bats