-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from zebrunner/develop
1.1.3
- Loading branch information
Showing
4 changed files
with
59 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/com/zebrunner/carina/cucumber/config/CucumberConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.zebrunner.carina.cucumber.config; | ||
|
||
import java.util.Optional; | ||
|
||
import com.zebrunner.carina.utils.config.Configuration; | ||
import com.zebrunner.carina.utils.config.IParameter; | ||
|
||
public class CucumberConfiguration extends Configuration { | ||
|
||
public enum Parameter implements IParameter { | ||
|
||
/** | ||
* Determines whether the ability to set a custom test directory (report folder) name is enabled. <b>Default: false</b> | ||
*/ | ||
CUSTOM_TESTDIR_NAMING("custom_testdir_naming"); | ||
|
||
private final String key; | ||
|
||
Parameter(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
Optional<String> asString = asString(Parameter.values()); | ||
if (asString.isEmpty()) { | ||
return ""; | ||
} | ||
return "\n============= Cucumber configuration ==============\n" + | ||
asString.get(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# determines whether the ability to set a custom test directory (report folder) name is enabled | ||
#============ Cucumber Configuration ==============# | ||
custom_testdir_naming=false |