diff --git a/docs/projectconf.rst b/docs/projectconf.rst index 16e352d6..42eb6b8a 100644 --- a/docs/projectconf.rst +++ b/docs/projectconf.rst @@ -802,9 +802,9 @@ Test options .. seealso:: Please make sure to read :ref:`unit_testing` guide first. -Ignore tests where the name matches specified patterns. -More than one pattern is allowed (multi-lines). Also, you can ignore some -tests using :option:`platformio test --ignore` command. +Ignore tests where the name matches specified patterns. Multiple names are +allowed. Please separate them using comma ``,`` symbol. Also, you can +ignore some tests using :option:`platformio test --ignore` command. .. list-table:: :header-rows: 1 @@ -829,9 +829,7 @@ tests using :option:`platformio test --ignore` command. .. code-block:: ini [env:myenv] - test_ignore = - mytest* - test[13] + test_ignore = footest, bartest_*, test[13] ----------- diff --git a/platformio/commands/test.py b/platformio/commands/test.py index 310caba4..6afe1bcd 100644 --- a/platformio/commands/test.py +++ b/platformio/commands/test.py @@ -72,7 +72,7 @@ def cli(ctx, environment, ignore, upload_port, project_dir, verbose): if projectconf.has_option(section, "test_ignore"): _ignore.extend([p.strip() for p in projectconf.get( - section, "test_ignore").split("\n") + section, "test_ignore").split(",") if p.strip()]) if testname != "*" and \ any([fnmatch(testname, p) for p in _ignore]):