Source

snap / Makefile

Diff from to

File Makefile

 OUTPUT_FILE = snap-${VERSION}.js
 OUTPUT_FILE_MIN = snap-${VERSION}-min.js
 
-snap:
+snap: unittest
 	@echo 'Combining source files'
 	@mkdir -p ${BUILD_DIR}
 	@cat ${JS_FILES} > ${BUILD_DIR}/${OUTPUT_FILE}
 	@echo 'Minifying source'
 	@java -jar lib/google-closure-compiler.jar --js ${BUILD_DIR}/${OUTPUT_FILE} --js_output_file ${BUILD_DIR}/${OUTPUT_FILE_MIN}
-	
-test:
+
+unittest:
 	@echo 'Run tests against source'
+	@@sh test/lib/run_testdriver.sh
+	# java -jar test/lib/JsTestDriver.jar --config test/lib/jsTestDriver.conf --port 4224 --browser  --tests all --testOutput testOutputDir
 	# @java -jar lib/js.jar 
 
 clean: