D
D
Dmitry Spirin2015-05-15 11:52:46
Java
Dmitry Spirin, 2015-05-15 11:52:46

How to automatically run tests during package build process in Play Framework 2.3.9?

I'm using Play Framework 2.3.9 . I'm
building a production distribution via activator debian:package-bin (or even just activator dist).
How to automatically run tests (those through activator test) and abort the assembly in case of an error passing them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2015-05-15
@mrRontgen

Go through all the tests first, and then build the production. When building a production version, a bunch of optimizers and obfuscators (js, css, sass, and other things) go through the sources, which are not needed during tests. Run in console activator test && activator distand don't worry.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question