Test utilities for a CLI tool, eg org.lflang.cli.Lfc, org.lflang.cli.Lff.
More...
Inherited by org.lflang.cli.LfcCliTest.LfcOneShotTestFixture, org.lflang.cli.LfcCliTest.LfcTestFixture, org.lflang.cli.LfdCliTest.LfdTestFixture, and org.lflang.cli.LffCliTest.LffTestFixture.
|
| ExecutionResult | run (Path wd, String... args) |
| | Run the tool with the given arguments, in the given working directory.
|
| ExecutionResult | run (String... args) |
| | Run the tool with the given arguments, in the system working directory.
|
|
| abstract void | runCliProgram (Io io, String[] args) |
| | Override to call the relevant main.
|
|
| record | ExecutionResult (ByteArrayOutputStream out, ByteArrayOutputStream err, int exitCode) |
| | The result of an execution of a CLI program like LFC.
|
Test utilities for a CLI tool, eg org.lflang.cli.Lfc, org.lflang.cli.Lff.
- Author
- Clément Fournier
◆ ExecutionResult()
| record org.lflang.cli.CliToolTestFixture.ExecutionResult |
( |
ByteArrayOutputStream | out, |
|
|
ByteArrayOutputStream | err, |
|
|
int | exitCode ) |
|
package |
The result of an execution of a CLI program like LFC.
- Parameters
-
| out | Output stream |
| err | Error stream |
| exitCode | Exit code of the process |
Use this method to wrap assertions.
◆ run() [1/2]
| ExecutionResult org.lflang.cli.CliToolTestFixture.run |
( |
Path | wd, |
|
|
String... | args ) |
Run the tool with the given arguments, in the given working directory.
- Parameters
-
| wd | working directory |
| args | Arguments |
- Returns
- The execution result
◆ run() [2/2]
Run the tool with the given arguments, in the system working directory.
- Parameters
-
- Returns
- The execution result
◆ runCliProgram()
| abstract void org.lflang.cli.CliToolTestFixture.runCliProgram |
( |
Io | io, |
|
|
String[] | args ) |
|
abstractprotected |
The documentation for this class was generated from the following file:
- /Users/runner/work/lingua-franca/lingua-franca/cli/base/src/testFixtures/java/org/lflang/cli/CliToolTestFixture.java