commit | 08a56c4174caca3f43e3fdbd5262e5b6a25be6b1 | [log] [tgz] |
---|---|---|
author | Xixuan Wu <xixuan@chromium.org> | Thu Mar 01 15:07:18 2018 -0800 |
committer | Xixuan Wu <xixuan@chromium.org> | Wed Mar 14 21:24:33 2018 +0000 |
tree | e8f5dbd2907b6815c54a8ecc92b88c5a5e8b54aa | |
parent | 41da080c56284d0d12ec081b069262deee3d0148 [diff] |
test_analyzer: Add initial setups & bigquery connections. BUG=chromium:818020 TEST=Ran 'pipenv run pytest test_analyzer/integration_test'. Ran 'bin/run_tests'. Change-Id: I7665a5db69be4ac6a930ce0eb5648be8ff0f6a39 Reviewed-on: https://chromium-review.googlesource.com/944621 Tested-by: Xixuan Wu <xixuan@chromium.org> Reviewed-by: Shuhei Takahashi <nya@chromium.org> Reviewed-by: Paul Hobbs <phobbs@google.com> Commit-Queue: Xixuan Wu <xixuan@chromium.org>
Download service account service secret files:
gsutil cp -r gs://chromiumos-test-analyzer.appspot.com/credentials ./test_analyzer/
It includes 2 json files, one for prod & one for staging instance.
Install pipenv to create virtual environment for local tests:
sudo pip install pipenv
Try to run tests:
For unittest:
bin/run_tests
For integration test:
pipenv run pytest test_analyzer/integration_test/