[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode b8863a5c82 054/308: Added first take on automa
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode b8863a5c82 054/308: Added first take on automated tests. |
Date: |
Tue, 25 Jan 2022 10:59:24 -0500 (EST) |
branch: elpa/drupal-mode
commit b8863a5c8215aa45d677db23c5ef9bb1b1757944
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Added first take on automated tests.
Automated tests using Emacs Lisp Regression Testing (ERT).
---
Makefile | 5 ++++-
drupal-tests.el | 29 +++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 00b0930b52..11641c69fa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: all clean install
+.PHONY: all test clean install
ARCHIVE_NAME:=drupal-mode
VERSION:=$(shell emacs --batch -l package --eval "(with-temp-buffer \
@@ -8,6 +8,9 @@ PACKAGE_NAME:=$(ARCHIVE_NAME)-$(VERSION)
all: $(PACKAGE_NAME).tar
+test:
+ emacs --batch --user `whoami` -L `pwd` -l drupal-tests -f
ert-run-tests-batch-and-exit
+
$(ARCHIVE_NAME).info: README.md
pandoc -t texinfo $^ | makeinfo -o $@
diff --git a/drupal-tests.el b/drupal-tests.el
new file mode 100644
index 0000000000..dadf37c541
--- /dev/null
+++ b/drupal-tests.el
@@ -0,0 +1,29 @@
+;;; drupal-tests.el --- ert tests for drupal-mode
+
+;;; Commentary:
+
+;; Drupal mode is an advanced minor mode for developing in Drupal.
+
+;;; Code:
+
+(require 'drupal-mode)
+(require 'ert)
+
+
+
+(ert-deftest drupal-major-version-test ()
+ "Test `drupal-major-version'."
+ (should (equal (drupal-major-version "7.12") "7"))
+ (should (equal (drupal-major-version "6.1") "6"))
+ (should (equal (drupal-major-version "4.5.2") "4.5"))
+)
+
+
+
+(provide 'drupal-tests)
+
+;; Local Variables:
+;; coding: utf-8
+;; End:
+
+;;; drupal-tests.el ends here
- [nongnu] elpa/drupal-mode a0ef7e7fce 039/308: Fixed package name in install target., (continued)
- [nongnu] elpa/drupal-mode a0ef7e7fce 039/308: Fixed package name in install target., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 661e6bba48 040/308: Changed info about flymake-phpcs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ebb3c56e25 068/308: Discovers more module info and added module menu., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 587e0eb2ec 060/308: Added completion based on gtags., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e96a1f70f4 066/308: Added support for "Drush utilities for Emacs users"., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5386751a5d 069/308: Fixed module version in module menu., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8fc32e7641 053/308: Made `drupal-detect-drupal-version' more reliable., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ce7e9d2bf3 043/308: Various cleanup., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 00aae1e5e8 070/308: Added support for `web-mode'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 48a90d94ed 061/308: Fixed spelling., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b8863a5c82 054/308: Added first take on automated tests.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 8599809578 058/308: Flymake-phpcs also highlights trailing whitespace., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode aa87684203 048/308: Added `require' for supported libraries., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 897fbfb4a5 082/308: Added small optimization for byte compiler., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a53c312da1 089/308: Improved info file auto-insert skeleton., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 42fc725add 092/308: Hardened match for code sniffer standard., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 4688c8f0cb 101/308: Fixed use of `called-interactively-p'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7866012679 103/308: Fixed link to other drupal-modes at Gitub, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8951d9a7e8 105/308: Extended documentation of `drupal/flymake-phpcs-standard'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 3df6f6725c 110/308: Add contributing guidelines., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f0ae32d88a 111/308: Added first take at a `drush-make-mode'., ELPA Syncer, 2022/01/25