Home > @holochain/tryorama > Scenario
An abstraction of a test scenario to write tests against Holochain hApps, running on a local conductor.
Signature:
export declare class Scenario |
Constructor |
Modifiers |
Description |
|---|---|---|
|
Scenario constructor. |
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
URL | undefined | |||
|
boolean | undefined | |||
|
string | |||
|
string | |||
|
boolean | |||
|
ChildProcessWithoutNullStreams | undefined | |||
|
URL | undefined |
|
Method |
Modifiers |
Description |
|---|---|---|
|
Create and add a conductor to the scenario. | ||
|
Create conductors with agents and add them to the scenario. The specified number of conductors is created and one agent is generated on each conductor. Each conductor is created sequentially, once the previous has completed startup. | ||
|
Create and add multiple players to the scenario, with an app installed for each player. | ||
|
Create and add multiple players to the scenario, with the same app installed for each player. Each conductor is created sequentially, once the previous has completed startup. | ||
|
Create and add a single player with an app installed to the scenario. This should not be called multiple times in parallel. Instead use | ||
|
Shut down and delete all conductors in the scenario. | ||
|
Installs the provided apps for the provided players. The number of players must be at least as high as the number of apps. Each app is installed sequentially, once the previous has completed installation. # Errors If any of the app options contains an agent pub key, an error is thrown, because the agent pub keys of the players will be used for app installation. | ||
|
Installs the same provided app for the provided players. The app is installed into each player's conductor sequentially, once the previous has completed installation. | ||
|
Register all agents of all passed in conductors to each other. This skips peer discovery through gossip and thus accelerates test runs. | ||
|
Shut down all conductors in the scenario. |