mirror of
https://github.com/sismics/docs.git
synced 2024-12-22 03:13:48 +01:00
cleanup logs for Travis + new process for each test
This commit is contained in:
parent
287ed06b6a
commit
b3dc409926
@ -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.size=1000
|
||||
|
||||
log4j.logger.com.sismics=DEBUG
|
||||
log4j.logger.com.sismics=INFO
|
||||
log4j.logger.org.hibernate=ERROR
|
@ -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
|
||||
*/
|
||||
|
4
pom.xml
4
pom.xml
@ -113,6 +113,10 @@
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>${org.apache.maven.plugins.maven-surefire-plugin.version}</version>
|
||||
<configuration>
|
||||
<forkCount>1</forkCount>
|
||||
<reuseForks>false</reuseForks>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
Loading…
Reference in New Issue
Block a user