|
From: | Max Nikulin |
Subject: | Re: [PATCH] Unit-test for Please add support for dlangs packagemanager to ob-C.el |
Date: | Sun, 2 Oct 2022 09:47:18 +0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 |
On 02/10/2022 05:05, Christian Köstlin wrote:
Aforementioned unit-test.
+(ert-deftest ob-D/dub-basics () + (if (executable-find "dub") (org-test-at-id + "81E17302-BE76-4E2A-93CA-0A7E121CB7C2" (org-babel-next-src-block 1) + (should (equal "abc, bac, cab, acb, bca, cba, " + (org-babel-execute-src-block))))))
I am unsure concerning general policy related to org-babel test, so the following is rather discussion than a direct request to change the test.
Is there a way to avoid dependency on remote resources? My concern is test results affected by network issues. In addition, more required 3rd party tools means less probability that a developer after modification of generic babel code noticed that the changes break D backend because missing tool on the development machine. I have no idea how much efforts is required to create a mock for isolated environment.
Another point is that missed dub binary is not reflected in test report. If `skip-unless' feature of ert is available in Emacs-26 then it should be used.
[Prev in Thread] | Current Thread | [Next in Thread] |