Skip to content

Commit e756835

Browse files
committed
Try testing more pytest
1 parent 79744f0 commit e756835

File tree

1 file changed

+47
-69
lines changed

1 file changed

+47
-69
lines changed

pytest.ini

Lines changed: 47 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -8,92 +8,70 @@ addopts =
88
--capture=sys
99
# don't suppress warnings, but don't shove them all to the end either
1010
-p no:warnings
11-
# Ignore backends/arm tests you need to run examples/arm/setup.sh to install some tool to make them work
12-
# For GitHub testing this is setup/executed in the unittest-arm job see .github/workflows/pull.yml for more info.
13-
--ignore-glob=backends/arm/**/*
14-
# explicitly list out tests that are running successfully in oss
11+
12+
# === TEST DIRECTORIES TO RUN ===
13+
14+
# ci/scripts
1515
.ci/scripts/tests
16-
examples/models/test
16+
17+
# backends
18+
backends/apple/coreml/test
19+
backends/test/harness/tests
20+
backends/test/suite/tests
21+
backends/transforms
22+
backends/xnnpack/test
23+
# Ignore ARM backend - requires running examples/arm/setup.sh to install tools
24+
--ignore-glob=backends/arm/**/*
25+
# Ignore backends/test root - WIP testing infra, see https://github.com/pytorch/executorch/discussions/11140
26+
--ignore=backends/test
27+
28+
# codegen
29+
codegen/test
30+
31+
# devtools
1732
devtools/
18-
--ignore=devtools/visualization/visualization_utils_test.py
33+
1934
# examples
35+
examples/models/test
2036
examples/models/llama/tests
2137
examples/models/llama/config
2238
examples/models/llama3_2_vision/preprocess
2339
examples/models/llama3_2_vision/vision_encoder/test
2440
examples/models/llama3_2_vision/text_decoder/test
25-
# examples/models/llava/test TODO: enable this
41+
examples/models/llava/test
42+
# Ignore test requiring torchao - T200992559: Add torchao to ET as core dependency
43+
--ignore=examples/models/llama/tests/test_pre_quantization_transforms.py
44+
2645
# exir
27-
exir/_serialize/test
28-
exir/backend/test
29-
exir/dialects/backend/test
30-
exir/dialects/edge/test
31-
exir/dialects/test
32-
exir/emit/test
33-
exir/program/test
34-
exir/tests/
35-
# executorch/export
46+
exir/
47+
48+
# export
3649
export/tests
3750
--ignore=export/tests/test_export_stages.py
38-
# kernels/
51+
52+
# extension
53+
extension/
54+
55+
# kernels
3956
kernels/prim_ops/test
4057
kernels/quantized
41-
# Because this test depends on test only cpp ops lib
42-
# Will add test only cmake targets to re-enable this test
43-
# but maybe it is a bit of anti-pattern
44-
--ignore=kernels/quantized/test/test_quant_dequant_per_token.py
4558
kernels/test/test_case_gen.py
46-
# backends/test
47-
# This effort is WIP and will be enabled in CI once testing infra
48-
# is stable and signal to noise ratio is good (no irrelevant failures).
49-
# See https://github.com/pytorch/executorch/discussions/11140
50-
--ignore=backends/test
51-
backends/test/harness/tests
52-
backends/test/suite/tests
53-
# backends/xnnpack
54-
backends/xnnpack/test/ops
55-
--ignore=backends/xnnpack/test/ops/test_bmm.py
56-
--ignore=backends/xnnpack/test/ops/test_conv2d.py
57-
--ignore=backends/xnnpack/test/ops/test_linear.py
58-
--ignore=backends/xnnpack/test/ops/test_sdpa.py
59-
backends/xnnpack/test/passes
60-
backends/xnnpack/test/recipes
61-
backends/xnnpack/test/serialization
62-
# backends/apple/coreml
63-
backends/apple/coreml/test
64-
# extension/
65-
extension/llm/modules/test
66-
extension/llm/export
67-
extension/llm/custom_ops/test_sdpa_with_kv_cache.py
68-
extension/llm/custom_ops/test_update_cache.py
69-
extension/llm/custom_ops/test_quantized_sdpa.py
70-
extension/pybindings/test
71-
extension/training/pybindings/test
72-
# Runtime
59+
# Ignore test depending on test-only cpp ops lib
60+
--ignore=kernels/quantized/test/test_quant_dequant_per_token.py
61+
62+
# profiler
63+
profiler/
64+
65+
# runtime
7366
runtime
74-
# Tools
75-
codegen/test
67+
68+
# test
69+
test/
70+
71+
# tools
7672
tools/cmake
77-
# test TODO: fix these tests
78-
# test/end2end/test_end2end.py
79-
--ignore=backends/xnnpack/test/ops/linear.py
80-
--ignore=backends/xnnpack/test/models/llama2_et_example.py
81-
# T200992559: Add torchao to ET as core dependency
82-
--ignore=examples/models/llama/tests/test_pre_quantization_transforms.py
83-
--ignore=exir/backend/test/demos
84-
--ignore=exir/backend/test/test_backends.py
85-
--ignore=exir/backend/test/test_backends_lifted.py
86-
--ignore=exir/backend/test/test_partitioner.py
87-
--ignore=exir/tests/test_common.py
88-
--ignore=exir/tests/test_memory_format_ops_pass_aten.py
89-
--ignore=exir/tests/test_memory_planning.py
90-
--ignore=exir/tests/test_op_convert.py
91-
--ignore=exir/tests/test_passes.py
92-
--ignore=exir/tests/test_quant_fusion_pass.py
93-
--ignore=exir/tests/test_quantization.py
94-
--ignore=exir/tests/test_verification.py
9573

9674
# run the same tests multiple times to determine their
9775
# flakiness status. Default to 50 re-runs
9876
flake-finder = true
99-
flake-runs = 50
77+
flake-runs = 50

0 commit comments

Comments
 (0)