commit 00f7ea4bd55e9860f456245a424b97b546e092d9 parent 136ed6c5abff6955780dadb0ac5413e40186c82a Author: Iqbal Ansari <iqbalansari02@yahoo.com> Date: Sun, 22 Nov 2015 21:11:10 +0530 Add tests to ensure library compiles cleanly Diffstat:
M | test/emojify-test.el | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/test/emojify-test.el b/test/emojify-test.el @@ -388,6 +388,13 @@ (delete-selection-pre-hook)) (should (equal (point-min) (point-max)))))) +(ert-deftest emojify-tests-no-byte-compilation-errors () + :tags '(byte-compilation) + (with-mock + (stub message => nil) + (stub byte-compile-dest-file => "/tmp/emojify.elc") + (should (byte-compile-file (locate-library "emojify.el"))))) + ;; So that tests can be run simply by doing `eval-buffer' (unless noninteractive (ert "^emojify-"))