Drop "test_verbosity_level" configuration option // Issue #4276

This commit is contained in:
Ivan Kravets
2022-05-20 10:56:42 +03:00
parent 9b141bf5a8
commit f7e24f2093
5 changed files with 4 additions and 21 deletions

View File

@ -16,7 +16,7 @@ PlatformIO Core 6
6.0.2 (2022-??-??) 6.0.2 (2022-??-??)
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
* Control |UNITTESTING| verbosity with a new `test_verbosity_level <https://docs.platformio.org/en/latest/projectconf/section_env_test.html#test_verbosity_level>`__ configuration option (`issue #4276 <https://github.com/platformio/platformio-core/issues/4276>`_) * Control |UNITTESTING| verbosity with a new multilevel `pio test -v <https://docs.platformio.org/en/latest/core/userguide/cmd_test.html#cmdoption-pio-test-v>`__ command option (`issue #4276 <https://github.com/platformio/platformio-core/issues/4276>`_)
* Fixed an issue when the `build_src_flags <https://docs.platformio.org/en/latest/projectconf/section_env_build.html#build-src-flags>`__ option was applied outside the project scope (`issue #4277 <https://github.com/platformio/platformio-core/issues/4277>`_) * Fixed an issue when the `build_src_flags <https://docs.platformio.org/en/latest/projectconf/section_env_build.html#build-src-flags>`__ option was applied outside the project scope (`issue #4277 <https://github.com/platformio/platformio-core/issues/4277>`_)
6.0.1 (2022-05-17) 6.0.1 (2022-05-17)

2
docs

Submodule docs updated: 87c9ffa9ec...552e995fc5

View File

@ -697,19 +697,6 @@ ProjectOptions = OrderedDict(
"and returns results to the standard output" "and returns results to the standard output"
), ),
), ),
ConfigEnvOption(
group="test",
name="test_verbosity_level",
description=(
"Verbosity level: "
"0=normal verbosity (default), "
"1=raw testing output, "
"2=base verbosity for buidling/uploading, "
"3=extra verbosity for building/uploading"
),
type=click.IntRange(min=0, max=3),
default=0,
),
# Debug # Debug
ConfigEnvOption( ConfigEnvOption(
group="debug", group="debug",

View File

@ -126,7 +126,7 @@ def test_cmd( # pylint: disable=too-many-arguments,too-many-locals,redefined-bu
test_names = sorted(set(s.test_name for s in test_suites)) test_names = sorted(set(s.test_name for s in test_suites))
if not verbose: if not verbose:
click.echo("Verbosity level can be increased via `-v, --verbose` option") click.echo("Verbosity level can be increased via `-v, -vv, or -vvv` option")
click.secho("Collected %d tests" % len(test_names), bold=True, nl=not verbose) click.secho("Collected %d tests" % len(test_names), bold=True, nl=not verbose)
if verbose: if verbose:
click.echo(" (%s)" % ", ".join(test_names)) click.echo(" (%s)" % ", ".join(test_names))
@ -139,10 +139,7 @@ def test_cmd( # pylint: disable=too-many-arguments,too-many-locals,redefined-bu
test_suite, test_suite,
project_config, project_config,
TestRunnerOptions( TestRunnerOptions(
verbose=verbose verbose=verbose,
or project_config.get(
f"env:{test_suite.env_name}", "test_verbosity_level"
),
without_building=without_building, without_building=without_building,
without_uploading=without_uploading, without_uploading=without_uploading,
without_testing=without_testing, without_testing=without_testing,

View File

@ -94,7 +94,6 @@ def test_group_and_custom_runner(clirunner, validate_cliresult, tmp_path: Path):
[env:native] [env:native]
platform = native platform = native
test_framework = custom test_framework = custom
test_verbosity_level = 1
""" """
) )
test_dir = project_dir / "test" test_dir = project_dir / "test"