This package implements a major mode for shelltestrunner.
Besides syntax highlighting, a few useful functions for dealing with test files are provided. These functions work from all modes and can be bound to keys for additional convenience.
Either install via MELPA, or place shelltest-mode.el
into your load
path and do:
(require 'shelltest-mode)
To load shelltest-mode
for all *.test files, add the following to your
Emacs init file:
(add-to-list 'auto-mode-alist '("\\.test\\'" . shelltest-mode))
Edit the test file that corresponds to the currently edited file.
The opened file is shelltest-directory/file.test, where “file” is the name of the currently edited file with its extension removed. If shelltest-other-window is non-nil, open the file in another window.
Run the test file associated with the currently edited file.
The command to be run is determined by shelltest-command. Its argument is shelltest-directory/file.test, where “file” is the name of the currently edited file with its extension removed.
Run all test files.
The command to be run is determined by shelltest-command. Its argument is shelltest-directory.
Default: t
If given a non-nil value, shelltest-find uses another window.
Default: "shelltest --execdir"
The command that shelltest-run and shelltest-run-all execute.
Default: "./tests/"
The directory in which the test files are located.
Note that this should end with a directory separator.
- Require shelltest-directory to end with a directory separator.
- Fix a bug in the syntax highlighting patterns.
Initial release.