Sent by mistake, missed the example.
@Deployment(testable = false)
public static WebArchive createDeployment() {
final WebArchive webArchive = getDefault()
.addPackage(Endereco.class.getPackage())
.addPackage(Dao.class.getPackage())
.addPackage(UsuarioService.class.getPackage())
.addPackage(Usuario.class.getPackage());
return webArchive;
}
On Wed, Mar 6, 2019 at 7:22 PM Ivan Junckes Filho <[email protected]>
wrote:
> Is there a way I can avoid adding classes and packages for tests and just
> have everything?
>
> It is very annoying to have to run the test each time to find out which
> class I didn't add to the WebArchive.
>
>