Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pymapdl_convert_script = "ansys.mapdl.core.cli:old_pymapdl_convert_script_entry_
pymapdl = "ansys.mapdl.core.cli:main"

[tool.pytest.ini_options]
addopts = "-rxXsa -vvv --maxfail=10"
addopts = "-rxXsa -vvv --maxfail=10 --strict-markers"
junit_family = "legacy"
filterwarnings = [
"ignore::FutureWarning",
Expand All @@ -132,7 +132,8 @@ filterwarnings = [
]
markers = [
"skip_grpc: skip tests using grpc",
"gui: skip tests that launch the GUI interface",
"requires_gui: run tests that require to launch the GUI interface",
"console: run console test based",
]
testpaths = "tests"
image_cache_dir = "tests/.image_cache"
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def short_test_summary(self):
)


@pytest.mark.trylast
@pytest.hookimpl(trylast=True)
def pytest_configure(config):
vanilla_reporter = config.pluginmanager.getplugin("terminalreporter")
my_reporter = MyReporter(config)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def test_env_injection():
[None, False, "Working directory is NOT in the pytest directory."],
[True, None, "There is a result file, and WDIR is a temp dir."],
pytest.param(
True, True, "Both options (`True`) is not allowed.", marks=pytest.mark.fail
True, True, "Both options (`True`) is not allowed.", marks=pytest.mark.xfail
),
[True, False, "There is a result file, and WDIR is in a temp dir."],
[False, None, "There is NOT a result file, and WDIR is in a temp dir."],
Expand Down