Skip to content

Commit

Permalink
Minor update to clarify current use of expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanmarculescu committed Apr 24, 2019
1 parent 70babb5 commit b4ed34b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/src/main/kotlin/org/evomaster/core/EMConfig.kt
Expand Up @@ -541,7 +541,8 @@ class EMConfig {
var e_u1f984 = false

@Experimental
@Cfg("Enable Expectation Generation. If enabled, an expectation that fails will cause the test case containing it to fail.")
@Cfg("Enable Expectation Generation. If enabled, expectations will be generated. " +
"A variable called activeExpectations is added to each test case, with a default value of false. If set to true, an expectation that fails will cause the test case containing it to fail.")
var expectationsActive = false

@Experimental
Expand Down
Expand Up @@ -155,7 +155,7 @@ class TestSuiteWriter {
if(config.outputFormat.isJava()) {
lines.add("private static final SutHandler $controller = new $controllerName();")
lines.add("private static String $baseUrlOfSut;")
lines.add("private static Boolean activeExpectations = false;")
lines.add("private static boolean activeExpectations = false;")
} else if(config.outputFormat.isKotlin()) {
lines.add("private val $controller : SutHandler = $controllerName()")
lines.add("private lateinit var $baseUrlOfSut: String")
Expand Down

0 comments on commit b4ed34b

Please sign in to comment.