There is no official way to test Errai apps. It really depends on what works best for you.
Most of the tests for the Errai framework are based on GWTTestCase, which is basically JUnit testing that is specialized for the GWT environment.
You can take a look at these tests at errai/errai · GitHub for your reference.
Ok, I see the samples ... but i see samples with CDI or samples with Bus.
How i test a client with cdi and events with a cdi server bean? ...
what kind of test can i do?
- i can test with the original gwt view (injected or something like that in the test class) or i need to mock the view and test only the events?
- i can test the server bean directly?
You can directly test the server bean just like you would in any CDI app. As an example, many people use Arquillian for this purpose.
Ok, surely Arquillian will be the right move.