parent
398c944693
commit
1c78d724cc
1 changed files with 6 additions and 7 deletions
|
|
@ -15,13 +15,12 @@ Be sure to add the module `akka-testkit` to your dependencies.
|
||||||
|
|
||||||
## Asynchronous Testing: `TestKit`
|
## Asynchronous Testing: `TestKit`
|
||||||
|
|
||||||
When you are reasonably sure that your actor's business logic is correct, the
|
Testkit allows you to test your actors in a controlled but realistic
|
||||||
next step is verifying that it works correctly within its intended
|
environment. The definition of the environment depends of course very much on
|
||||||
environment@scala[ (if the individual actors are simple enough, possibly because they use the
|
the problem at hand and the level at which you intend to test, ranging from
|
||||||
`FSM` module, this might also be the first step)]. The definition of the
|
simple checks to full system tests.
|
||||||
environment depends of course very much on the problem at hand and the level at
|
|
||||||
which you intend to test, ranging for functional/integration tests to full
|
The minimal setup consists of the test procedure, which provides
|
||||||
system tests. The minimal setup consists of the test procedure, which provides
|
|
||||||
the desired stimuli, the actor under test, and an actor receiving replies.
|
the desired stimuli, the actor under test, and an actor receiving replies.
|
||||||
Bigger systems replace the actor under test with a network of actors, apply
|
Bigger systems replace the actor under test with a network of actors, apply
|
||||||
stimuli at varying injection points and arrange results to be sent from
|
stimuli at varying injection points and arrange results to be sent from
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue