bitter-ability-32190
04/05/2022, 8:39 PMpython_tests(
name="tests",
tags=["manual_test"],
)
./pants --tag='-manual_test' test path/to/tests/:
Seems to run the testsbitter-ability-32190
04/05/2022, 8:40 PM./pants --tag='-manual_test' test ::
echoing-farmer-15630
04/05/2022, 8:43 PMbitter-ability-32190
04/05/2022, 8:43 PMlist
does do the filtering. Weeeeeirdbitter-ability-32190
04/05/2022, 8:44 PM[DEBUG] Completed: Scheduling: Run Pytest for ...
hundreds-father-404
04/05/2022, 8:46 PMhundreds-father-404
04/05/2022, 8:47 PMhundreds-father-404
04/05/2022, 8:47 PMbitter-ability-32190
04/05/2022, 8:51 PMbitter-ability-32190
04/05/2022, 8:53 PMhundreds-father-404
04/05/2022, 8:54 PMdef test_hacky():
pass
high-yak-85899
04/05/2022, 8:55 PMhundreds-father-404
04/05/2022, 8:55 PMhigh-yak-85899
04/05/2022, 8:56 PMhigh-yak-85899
04/05/2022, 8:56 PMbitter-ability-32190
04/05/2022, 8:57 PMbitter-ability-32190
04/05/2022, 9:01 PMbitter-ability-32190
04/05/2022, 9:01 PMimport pytest
@pytest.mark.skip
def test_nothing():
pass
bitter-ability-32190
04/05/2022, 9:03 PMjoshuacannon@CEPHANDRIUS:~/work/techlabs$ ./pants test --force --output=all path/to/test_foo.py -- -vv
16:01:25.17 [INFO] Completed: Run Pytest - path/to/test_foo.py:tests succeeded.
============================= test session starts ==============================
platform linux -- Python 3.8.12, pytest-6.1.1, py-1.11.0, pluggy-0.13.1 -- /home/joshuacannon/.cache/pants/named_caches/pex_root/venvs/s/cf02046f/venv/bin/python3.8
cachedir: .pytest_cache
rootdir: /tmp/process-executionUMiF6w, configfile: pytest.ini
plugins: profiling-1.7.0, kafka-0.5.0, forked-1.4.0, cov-3.0.0, mock-3.7.0, xdist-2.4.0, timeout-2.1.0, mockito-0.0.4
collecting ... collected 1 item
path/to/test_foo.py::test_nothing SKIPPED [100%]
- generated xml file: /tmp/process-executionUMiF6w/path.to.test_foo.py.tests.xml -
============================== 1 skipped in 0.02s ==============================
ā path/to/test_foo.py:tests succeeded in 0.24s
bitter-ability-32190
04/05/2022, 9:06 PMbitter-ability-32190
04/05/2022, 9:13 PMbitter-ability-32190
04/05/2022, 9:14 PMbitter-ability-32190
04/05/2022, 9:16 PMwide-zoo-86070
04/05/2022, 9:29 PMexclude
arg in Black to exclude some dirs from black. However, it seems the exclude flag is not working with pants
by using he same config file pyproject.toml. Anyone having this issue as well?bitter-ability-32190
04/05/2022, 9:33 PMGood point, will add matching cases hopefully by the end of the week
high-yak-85899
04/05/2022, 9:38 PMbitter-ability-32190
04/05/2022, 9:40 PMhigh-yak-85899
04/05/2022, 9:43 PMpytest.mark.<my_custom_marker>
after specifying custom markers in pytest.ini
. I'm not sure how to configure the skip/deselect behavior. Is that something supported out of the box?high-yak-85899
04/05/2022, 9:45 PMhigh-yak-85899
04/05/2022, 9:45 PM