Add junit test info

This commit is contained in:
Flare Microsystems
2024-11-08 17:22:07 -08:00
parent 1c978cd8d3
commit acb9806bcf
2 changed files with 9 additions and 1 deletions

View File

@@ -2,5 +2,6 @@
<classpath> <classpath>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

9
Jenkinsfile vendored
View File

@@ -4,7 +4,14 @@ pipeline {
stage('Compile'){ stage('Compile'){
steps { steps {
sh "mkdir -p bin" sh "mkdir -p bin"
sh "/tool/jdk1.6.0_45/bin/javac -target 1.5 -cp ./Lib/lwjgl.jar:./Lib/jinput.jar:./Lib/lwjgl_util.jar -d bin \$(find ./src/* | grep .java)" sh "/tool/jdk1.6.0_45/bin/javac -target 1.5 -d bin \$(find ./src/* | grep .java)"
}
}
stage('Test'){
steps {
sh '''
find bin/test -name "*.class" | sed \'s/bin\\///\' | sed \'s/\\.class//\' | tr \'/\' \'.\' | xargs -I {} java -cp ./bin:/tool/junit4/* org.junit.runner.JUnitCore {}
'''
} }
} }
stage('Package'){ stage('Package'){