def METHOD_NAME(self):
    is_embedded = self.platform.is_embedded()
    if self.options.without_uploading or not is_embedded:
        return None
    click.secho(
        "Building & Uploading..." if is_embedded else "Uploading...", bold=True
    )
    targets = ["upload"]
    if self.options.without_building:
        targets.append("nobuild")
    else:
        targets.append("__test")
    if not self.options.without_debugging:
        targets.append("__debug")
    try:
        return self.run_project_targets(targets)
    except ReturnErrorCode as exc:
        raise UnitTestSuiteError(
            "Uploading stage has failed, see errors above. "
            "Use `pio test -vvv` option to enable verbose output."
        ) from exc