Hi Eric Eric Schulte writes: > Hi Martyn > > Martyn Jago writes: > >> Hi Eric >> >> Eric Schulte writes: >> >> [...] >> >>> >>> I just made three small changes to the testing framework so it is now >>> possible to run the test suite in batch mode with the following. >>> >>> emacs -Q --batch -l path/to/org/testing/org-test.el --eval "(setq >>> org-confirm-babel-evaluate nil)" -f org-test-run-all-tests >> >> Great idea - unfortunately its not quite working for me since I get >> four failing tests. In addition I have no (easy) indication of which >> four tests are failing since the backtrace is just the output of the >> tests working (no backtrace for failed tests). >> > > I'm getting four failing tests as well when I start Emacs with the -Q > option and no failing tests when I run it with my configuration loaded. > I will dig through my personal config, find out what options are making > these tests pass, and adjust the tests appropriately so that they all > pass with no personal config. > >> >> This is what I like about the ert-run-batch commands - you get an >> indication and summary of tests passed, and the backtrace of any >> failures. >> >> Also, I mentioned that ert-batch.el and ert-run.el are not part of >> Emacs. This is actually because their contents were merged into ert.el >> within Emacs. >> > > Thanks for mentioning the batch ert commands, I was not aware of their > existence. I've added a batch version of org-test-run-all-tests to the > org-mode test suite, the following should now be sufficient to run the > test suite from the command line with nicer output. > > #+begin_src sh > emacs -Q --batch -l path/to/org/testing/org-test.el \ > --eval "(setq org-confirm-babel-evaluate nil)" \ > -f org-test-run-all-tests > #+end_src Thats great - I'll try it out when I get a chance. I have written a few more tests for inline source blocks execution with org-ctrl-c-ctrl-c (not extensive by any means). The last two [:results scaler] and [:results verbatim] surprised me slightly since the manual suggests to me that they would be identical (although verbatim does what I would expect). ,---- | - scalar, verbatim The results should be interpreted literally—they | will not be converted into a table. The results will be inserted into | the Org-mode buffer as quoted text. E.g., :results value verbatim. `---- --8<---------------cut here---------------start------------->8--- src_src_emacs-lisp[ :results scalar ]{ \"x\" } =x= src_src_emacs-lisp[ :results verbatim ]{ \"x\" } ="x"= --8<---------------cut here---------------end--------------->8---