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

@ -5,4 +5,5 @@ log4j.appender.CONSOLE.layout.ConversionPattern=%d{DATE} %p %l %m %n
log4j.appender.MEMORY=com.sismics.util.log4j.MemoryAppender log4j.appender.MEMORY=com.sismics.util.log4j.MemoryAppender
log4j.appender.MEMORY.size=1000 log4j.appender.MEMORY.size=1000
log4j.logger.com.sismics=DEBUG log4j.logger.com.sismics=INFO
log4j.logger.org.hibernate=ERROR

View File

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

View File

@ -113,6 +113,10 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>${org.apache.maven.plugins.maven-surefire-plugin.version}</version> <version>${org.apache.maven.plugins.maven-surefire-plugin.version}</version>
<configuration>
<forkCount>1</forkCount>
<reuseForks>false</reuseForks>
</configuration>
</plugin> </plugin>
<plugin> <plugin>