void () { runPythonTest( new PyProcessWithConsoleTestTask<PyAbstractTestProcessRunner<PyToxConfiguration>>("/toxtest/toxDoubleDash/", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyAbstractTestProcessRunner<PyToxConfiguration> createProcessRunner() { return new RunnerWithArguments(new String[]{"py37"}, "--", "--version"); } @Override protected void checkTestResults(@NotNull final PyAbstractTestProcessRunner<PyToxConfiguration> runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, final int exitCode) { Assert.assertThat("Pytest should provide version because of --version", runner.getAllConsoleText(), Matchers.containsString("pytest")); Assert.assertEquals("Only 3.7 should be launched", """ Test tree: [root](+) .py37(+) """, runner.getFormattedTestTree()); runner.getFormattedTestTree(); } @NotNull @Override public Set<String> getTags() { return Sets.newHashSet("tox"); } }); }