Francesc Rocher <francesc.roc...@gmail.com> writes: > I'm starting from scratch the set of tests for Ada/SPARK support in Babel. > I've prepared a file with the first example: > > ---8<--- testing/examples/ob-ada-spark-test-org ---8<--- > ... > Then in the file testing/test-ob-ada-spark.el I've defined the following > test: > > (ert-deftest ob-ada-spark/hello-world () > "Test simple Hello world." > (org-test-at-id "778e63c2-2644-4a6f-8e7d-f956fa3d9241"
I recommend using `org-test-with-temp-text' when the tested Org snippet is short. Otherwise, it is harder to read the test. > $ make BTEST_RE='ob-ada-spark.*' test-dirty > > it fails because (org-babel-execute-src-block) returns nil: > > Test ob-ada-spark/hello-world condition: > (wrong-type-argument stringp nil) Is the file name exactly "ob-ada-spark-test-org"? Without .org extension? If yes, IDs inside that file may not be indexed properly. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>