-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate logback-classic to Junit 5, LOGBACK-1687
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
- Loading branch information
Showing
99 changed files
with
563 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,69 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="integration" default="testAll" basedir="."> | ||
|
||
<!-- | ||
This build file is usually run indirectly via Maven. | ||
When running this build file through Ant directly, you must | ||
define the slf4jVersion property on the command line, e.g.: | ||
ant -Dslf4jVersion=1.5.4-SNAPSHOT | ||
--> | ||
<!-- | ||
This build file is usually run indirectly via Maven. | ||
<echo message="project.version: ${project.version}" /> | ||
<echo message="slf4j.version: ${slf4j.version}" /> | ||
<echo message="hamcrest: ${org.hamcrest:hamcrest-core:jar}" /> | ||
|
||
<path id="basicClasspath"> | ||
<!-- post junit version 4.12, we need to add hamcrest manually to the | ||
classpath, even though the m-ant-plugin declares a dependency on hamcrest! --> | ||
<pathelement location="${org.hamcrest:hamcrest-core:jar}" /> | ||
<pathelement location="../logback-core/target/logback-core-${project.version}.jar/" /> | ||
<pathelement location="../logback-core/target/test-classes/" /> | ||
<pathelement location="./target/classes/" /> | ||
<pathelement location="./target/test-classes/" /> | ||
<pathelement location="./lib/slf4j-api-${slf4j.version}.jar" /> | ||
<pathelement location="./src/test/input/integration/autoInit/" /> | ||
</path > | ||
When running this build file through Ant directly, you must | ||
define the slf4jVersion property on the command line, e.g.: | ||
ant -Dslf4j.version=2.0.2-SNAPSHOT | ||
--> | ||
|
||
<target name="testAll" depends="init, testWithoutGroovy" | ||
unless="maven.test.skip"> | ||
</target> | ||
<echo message="project.version: ${project.version}"/> | ||
<echo message="project.build.outputDirectory: ${project.build.outputDirectory}"/> | ||
<echo message="project.build.testOutputDirectory: ${project.build.testOutputDirectory}"/> | ||
<echo message="project.build.directory: ${project.build.directory}"/> | ||
|
||
<target name="init" depends="copySLF4J_JAR"> | ||
<echo message="in init"/> | ||
<mkdir dir="target/unit-reports" /> | ||
</target> | ||
|
||
<target name="copySLF4J_JAR"> | ||
<echo>Making lib/ folder in case it does not already exist.</echo> | ||
<mkdir dir="lib/"/> | ||
<echo>Copying ${org.slf4j:slf4j-api:jar} to lib/</echo> | ||
<!-- sneak in a cleanup procedure of the ../logback-examples/lib/ folder--> | ||
<delete quiet="true"> | ||
<fileset dir="../logback-examples/lib/" includes="slf4j-*SNAPSHOT.jar" /> | ||
</delete> | ||
<copy file="${org.slf4j:slf4j-api:jar}" todir="lib/" /> | ||
</target> | ||
|
||
<echo message="slf4j.version: ${slf4j.version}"/> | ||
<echo message="hamcrest: ${org.hamcrest:hamcrest-core:jar}"/> | ||
|
||
<target name="testWithoutGroovy" unless="maven.test.skip"> | ||
<junit printsummary="yes" fork="no" haltonfailure="yes"> | ||
<classpath refid="basicClasspath" /> | ||
<formatter type="plain" /> | ||
<test fork="yes" todir="target/unit-reports" | ||
outfile="TEST-NoGroovy" | ||
name="ch.qos.logback.classic.util.InitializationIntegrationTest" /> | ||
</junit> | ||
</target> | ||
<path id="basicClasspath"> | ||
<!-- post junit version 4.12, we need to add hamcrest manually to the | ||
classpath, even though the m-ant-plugin declares a dependency on hamcrest! --> | ||
<pathelement location="${org.hamcrest:hamcrest-core:jar}"/> | ||
<pathelement location="../logback-core/target/logback-core-${project.version}.jar/"/> | ||
<pathelement location="../logback-core/target/test-classes/"/> | ||
<pathelement location="${project.build.outputDirectory}"/> | ||
<pathelement location="${project.build.testOutputDirectory}"/> | ||
<pathelement location="./lib/slf4j-api-${slf4j.version}.jar"/> | ||
<pathelement location="./src/test/input/integration/autoInit/"/> | ||
</path> | ||
|
||
|
||
<target name="testAll" depends="init, testWithoutGroovy" | ||
unless="maven.test.skip"> | ||
</target> | ||
|
||
<target name="init" depends=""> | ||
<echo message="in init"/> | ||
<echo message="Making target/unit-reports folder"/> | ||
<mkdir dir="${project.build.directory}/unit-reports"/> | ||
</target> | ||
|
||
<target name="copySLF4J_JAR"> | ||
<echo>Making lib/ folder in case it does not already exist.</echo> | ||
<mkdir dir="lib/"/> | ||
<echo>Copying ${org.slf4j:slf4j-api:jar} to lib/</echo> | ||
<!-- sneak in a cleanup procedure of the ../logback-examples/lib/ folder--> | ||
<delete quiet="true"> | ||
<fileset dir="../logback-examples/lib/" includes="slf4j-*SNAPSHOT.jar"/> | ||
</delete> | ||
<copy file="${org.slf4j:slf4j-api:jar}" todir="lib/"/> | ||
</target> | ||
|
||
|
||
<target name="testWithoutGroovy" unless="maven.test.skip"> | ||
<junitlauncher printsummary="yes" haltonfailure="yes"> | ||
<classpath refid="basicClasspath"/> | ||
<listener type="legacy-plain" sendSysOut="true" sendSysErr="true"/> | ||
<test name="ch.qos.logback.classic.util.InitializationIntegrationTest" | ||
outputdir="${project.build.directory}/unit-reports" > | ||
<listener type="legacy-plain"/> | ||
</test> | ||
</junitlauncher> | ||
</target> | ||
|
||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
logback-classic/src/test/java/ch/qos/logback/classic/LoggerContextConcurrentResetTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.