void () { final String[] envsToRun = {"py37", "py38"}; runPythonTest( new PyProcessWithConsoleTestTask<PyAbstractTestProcessRunner<PyToxConfiguration>>("/toxtest/toxSuccess/", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyAbstractTestProcessRunner<PyToxConfiguration> createProcessRunner() { return new RunnerWithArguments(envsToRun, "-v"); } @Override protected void checkTestResults(@NotNull final PyAbstractTestProcessRunner<PyToxConfiguration> runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, final int exitCode) { final Set<String> environments = runner.getTestProxy().getChildren().stream().map(t -> t.getName()).collect(Collectors.toSet()); assertThat(environments) .describedAs("Wrong environments launched") .containsExactlyInAnyOrderElementsOf(Arrays.asList(envsToRun)); assertThat(all).contains("-v"); } @NotNull @Override public Set<String> getTags() { return Sets.newHashSet("tox"); } }); }