-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathTiltfile.tests
22 lines (18 loc) · 964 Bytes
/
Tiltfile.tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- mode: Python -*-
# For more on the `test_go` extension:
# https://github.com/tilt-dev/tilt-extensions/tree/master/tests/golang
# For more on tests in Tilt: https://docs.tilt.dev/tests_in_tilt.html
load('ext://tests/golang', 'test_go')
# these unit tests are fast/well cached, so it's easy to run them all whenever
# a file changes and get fast feedback
# (The `skipintegration` tag prevents this test resource from running our very
# slow integration test suite)
test_go('unit-tests', '.', '.',
recursive=True, tags=['skipintegration'])
# the integration tests are slow and clunky, so make them available from the sidebar
# and let the developer run them manually whenever it's necessary
test_go('integration-tests', './integration', '.',
extra_args=["-v"],
trigger_mode=TRIGGER_MODE_MANUAL,
# run this test automatically in CI mode; otherwise, only on manual trigger
auto_init=config.tilt_subcommand == 'ci')