-
-
Notifications
You must be signed in to change notification settings - Fork 608
/
BUILD
52 lines (47 loc) · 1.42 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
python_library(
name='testutil_wheel',
sources=[],
dependencies=[
':testutil',
':int-test-for-export',
'src/python/pants/testutil/engine',
'src/python/pants/testutil/option',
],
provides=pants_setup_py(
name='pantsbuild.pants.testutil',
description='Test support for writing Pants plugins.',
namespace_packages=['pants.testutil'],
additional_classifiers=[
'Topic :: Software Development :: Testing',
]
)
)
python_library(
sources=['*.py', '!pants_run_integration_test.py', '!_test.py'],
)
python_library(
name = 'int-test-for-export',
sources = ['pants_run_integration_test.py'],
dependencies = [
'//:build_root',
'src/python/pants:entry_point'
],
)
target(
name = 'int-test',
dependencies=[
':int-test-for-export',
# NB: 'pants_run_integration_test.py' runs ./pants in a subprocess, so test results will depend
# on the pants binary and all of its transitive dependencies. Adding the dependencies below is
# our best proxy for ensuring that any test target depending on this target will be invalidated
# on changes to those undeclared dependencies.
'src/python/pants/bin:pants_local_binary',
'src/rust/engine',
],
)
python_tests(
name='tests',
sources=['*_test.py', '!pants_run_integration_test.py']
)