1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-12 17:26:13 +00:00

cleanup logs for Travis + new process for each test

This commit is contained in:
Benjamin Gamard
2017-11-18 20:01:11 +01:00
parent 287ed06b6a
commit b3dc409926
3 changed files with 9 additions and 4 deletions

View File

@@ -55,10 +55,10 @@ public abstract class BaseJerseyTest extends JerseyTest {
@Override
protected Application configure() {
enable(TestProperties.LOG_TRAFFIC);
String travisEnv = System.getenv("TRAVIS");
if (travisEnv == null || !travisEnv.equals("true")) {
// Travis don't like entity dumped in the logs
// Travis doesn't like big logs
enable(TestProperties.LOG_TRAFFIC);
enable(TestProperties.DUMP_ENTITY);
}
return new Application();
@@ -103,7 +103,7 @@ public abstract class BaseJerseyTest extends JerseyTest {
/**
* Extract an email from the list and consume it.
*
* @return Texte de l'email
* @return Email content
* @throws MessagingException e
* @throws IOException e
*/