Package step.plugins.cypress
Class CypressSpecRunnerSession
- java.lang.Object
-
- step.plugins.cypress.AbstractCypressSession
-
- step.plugins.cypress.CypressSpecRunnerSession
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class CypressSpecRunnerSession extends AbstractCypressSession
-
-
Field Summary
-
Fields inherited from class step.plugins.cypress.AbstractCypressSession
CYPRESS_VERSION_PATTERN, cypressSessionManager, DEFAULT_CYPRESS_VERSION, detectedCypressVersion, id, projectFile, projectPath, screenshotPath
-
-
Constructor Summary
Constructors Constructor Description CypressSpecRunnerSession(CypressSessionManager cypressSessionManager, java.io.File projectFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
onReportTest(ExecutionReport executionReport)
CypressSpecExecutionReport
run(boolean headless, boolean debug, java.lang.String specName, javax.json.JsonObject inputJson)
-
Methods inherited from class step.plugins.cypress.AbstractCypressSession
collectScreenshots, ensureCypressExeIsExecutable, getCypressExe, getId, readCypressVersion, readProcessLog, runCommand, runCommand, runCypressInstall, runNpmInstallIfPackageJsonAvailable
-
-
-
-
Constructor Detail
-
CypressSpecRunnerSession
public CypressSpecRunnerSession(CypressSessionManager cypressSessionManager, java.io.File projectFile)
-
-
Method Detail
-
onReportTest
public void onReportTest(ExecutionReport executionReport)
-
run
public CypressSpecExecutionReport run(boolean headless, boolean debug, java.lang.String specName, javax.json.JsonObject inputJson) throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classAbstractCypressSession
- Throws:
java.io.IOException
-
-