Package io.github.cdklabs.projen.python
Class PytestOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.python.PytestOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PytestOptions>
- Enclosing interface:
- PytestOptions
@Stability(Experimental) public static final class PytestOptions.Builder extends Object implements software.amazon.jsii.Builder<PytestOptions>
A builder forPytestOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PytestOptionsbuild()Builds the configured instance.PytestOptions.BuildermaxFailures(Number maxFailures)Sets the value ofPytestOptions.getMaxFailures()PytestOptions.Buildertestdir(String testdir)Sets the value ofPytestOptions.getTestdir()PytestOptions.Builderversion(String version)Sets the value ofPytestOptions.getVersion()
-
-
-
Method Detail
-
maxFailures
@Stability(Experimental) public PytestOptions.Builder maxFailures(Number maxFailures)
Sets the value ofPytestOptions.getMaxFailures()- Parameters:
maxFailures- Stop the testing process after the first N failures.- Returns:
this
-
testdir
@Stability(Experimental) public PytestOptions.Builder testdir(String testdir)
Sets the value ofPytestOptions.getTestdir()- Parameters:
testdir- Directory with tests.- Returns:
this
-
version
@Stability(Experimental) public PytestOptions.Builder version(String version)
Sets the value ofPytestOptions.getVersion()- Parameters:
version- Pytest version.- Returns:
this
-
build
@Stability(Experimental) public PytestOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PytestOptions>- Returns:
- a new instance of
PytestOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-