Skip to content

Commit

Permalink
Invert regression suite param
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarinvs19 committed Jul 26, 2023
1 parent 94d293b commit 715c481
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions utbot-cli-python/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ Run generated tests:

Expected behaviour for runtime exception.

- `--generate-regression-suite`
- `--do-not-generate-regression-suite`

Generate regression test suite. Default error test suite generation only.
Generate regression test suite or not. Regression suite and error suite generation is active by default.

### `run_python` options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class PythonGenerateTestsCommand : CliktCommand(
.choice("PASS", "FAIL")
.default("FAIL")

private val generateRegressionSuite by option("--generate-regression-suite", help = "Generate regression test suite")
private val doNotGenerateRegressionSuite by option("--do-not-generate-regression-suite", help = "Do not generate regression test suite")
.flag(default = false)

private val testFramework: TestFramework
Expand Down Expand Up @@ -254,11 +254,11 @@ class PythonGenerateTestsCommand : CliktCommand(
logger.info("Generating tests...")
var testSets = processor.testGenerate(mypyStorage)
if (testSets.isEmpty()) return
if (!generateRegressionSuite) {
if (doNotGenerateRegressionSuite) {
testSets = testSets.map { testSet ->
PythonTestSet(
testSet.method,
testSet.executions.filter { it.result is UtExecutionSuccess },
testSet.executions.filterNot { it.result is UtExecutionSuccess },
testSet.errors,
testSet.mypyReport,
testSet.classId
Expand Down

0 comments on commit 715c481

Please sign in to comment.