Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunesimonsen/emacs-runtests
Run any kind of tests from Emacs
https://github.com/sunesimonsen/emacs-runtests
Last synced: about 1 month ago
JSON representation
Run any kind of tests from Emacs
- Host: GitHub
- URL: https://github.com/sunesimonsen/emacs-runtests
- Owner: sunesimonsen
- Created: 2014-10-13T06:03:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-07T08:34:30.000Z (over 9 years ago)
- Last Synced: 2024-10-08T23:20:57.254Z (about 1 month ago)
- Language: Emacs Lisp
- Homepage:
- Size: 206 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# runtests.el
This Emacs extension will run an external script called `runtests` that should
be in your path. If the script fails the output of the script will be shown with
ansi colors.The idea is that we offload all the nitty gritty details of executing the tests
for the current buffer to a shell script. You bind the `runtests` command to a
key that will run the tests for the current buffer.```sh
#!/bin/bash
rootDir="$(git rev-parse --show-toplevel)"
$rootDir/node_modules/mocha/bin/mocha -b -R dot --colors $1
```
You can customize the command being executed when calling `runtests` by
customizing the `runtests` group.To set the `runtests-command` for a particular mode in a given project, you can use
[Per-Directory Local Variables](http://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html).# License
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with
this program. If not, see http://www.gnu.org/licenses/.