Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor fixes

* japplemenubar was not included in jar
* added unit tests to build.xml
* added junit to dependencies, so ant can compile and run the tests
  • Loading branch information...
commit 2938215cbdab1281fab7e578a9645cc9b9a9d4b1 1 parent f94e255
@kritzikratzi authored
View
2  .classpath
@@ -4,7 +4,7 @@
<classpathentry kind="lib" path="dependencies/jogl.jar"/>
<classpathentry kind="lib" path="dependencies/processing-core.jar"/>
<classpathentry kind="lib" path="dependencies/processing-opengl.jar"/>
+ <classpathentry kind="lib" path="dependencies/junit-4.7.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
View
1  .gitignore
@@ -1,3 +1,4 @@
dist
bin
reference
+TEST-fullscreen.tests.Tests.txt
View
17 build.xml
@@ -23,7 +23,7 @@
<!-- path to the sketch folder -->
<property name="sketch.path" value="${user.home}/Documents/Processing" />
- <property name="version" value="0.98.1" />
+ <property name="version" value="0.98.2" />
<fileset id="cp" includes="dependencies/*.jar" />
<path id="cp">
<fileset dir="." includes="dependencies/*.jar" />
@@ -39,7 +39,7 @@
<!-- compile the sources, place the class files in the bin folder -->
<target name="compile" description="compile the sources">
<mkdir dir="bin" />
- <javac srcdir="src" destdir="bin" classpathref="cp" target="1.5" />
+ <javac srcdir="src" destdir="bin" classpathref="cp" target="1.5" debug="yes" debuglevel="lines,vars,source"/>
</target>
@@ -81,7 +81,7 @@
</copy>
<!-- create the jar files and copy them over -->
- <jar destfile="fullscreen/library/fullscreen.jar" basedir="bin" includes="fullscreen/**" excludes="fullscreen/tests/**" />
+ <jar destfile="fullscreen/library/fullscreen.jar" basedir="bin" includes="fullscreen/** japplemenubar/**" excludes="fullscreen/tests/**" />
<!-- done, zip it up! -->
<zip destfile="dist/fullscreen.zip">
@@ -110,6 +110,17 @@
<delete dir="fs_src" />
</target>
+ <!-- run unit tests -->
+ <target name="test" depends="compile" description="Run unit tests">
+ <junit printsummary="yes" showoutput="yes" fork="yes">
+ <formatter type="plain"/>
+ <classpath refid="cp" />
+ <classpath location="bin" />
+ <jvmarg value="-Djava.library.path=lib"/>
+ <test name="fullscreen.tests.Tests"/>
+ </junit>
+ </target>
+
<!-- install the library, the processing folder (at the top) has to be specified! -->
<target name="install" depends="dist" description="install library to ${sketch.path}">
View
5 dependencies/README
@@ -14,4 +14,7 @@ jogl.jar: Part of Java-OpenGL,
https://jogl.dev.java.net/
stylesheet.css: Part of the processing-library-template project
- http://code.google.com/p/processing-library-template/
+ http://code.google.com/p/processing-library-template/
+
+junit-4.7.jar: JUnit Testing Framework
+ http://www.junit.org
View
BIN  dependencies/junit-4.7.jar
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.