* Makefile.am (check-local): Supply riece-test with output filename.
* COMPILE (riece-test): Supply lunit-report with output filename.
* test/lunit.el: Require 'pp.
(lunit-escape-quote): Rename from lunit-test-reporter-format-sexp.
(lunit-report): Add "emacs-version" property.
2004-11-28 Daiki Ueno <ueno@unixuser.org>
+ * test/lunit.el (lunit-report): Accept output filename as the 2nd arg.
+ * Makefile.am (check-local): Supply riece-test with output filename.
+ * COMPILE (riece-test): Supply lunit-report with output filename.
+
* test/lunit.el: Require 'pp.
(lunit-escape-quote): Rename from lunit-test-reporter-format-sexp.
(lunit-report): Add "emacs-version" property.
$(PACKAGEDIR) # $(MAKE)
check-local:
- $(EMACS) $(FLAGS) -l COMPILE -f riece-test
\ No newline at end of file
+ $(EMACS) $(FLAGS) -l COMPILE -f riece-test lunit-report.xml
(/ (nth 2 elapsed) 1000000.0))))
(widen))))
-(defun lunit-report (test)
+(defun lunit-report (test file)
"Run TEST and output result as XML."
(let* ((printer
(luna-make-entity 'lunit-test-printer))
(result
(lunit-make-test-result printer))
- (buffer (find-file-noselect "lunit-report.xml"))
+ (buffer (find-file-noselect file))
start-time)
(save-excursion
(set-buffer buffer)
(insert "\
</testsuite>
</testsuites>")
- (save-buffer)
- ))))
+ (save-buffer)))))
(defvar imenu-create-index-function)
(defun lunit-create-index-function ()