Coder Social home page Coder Social logo

ert-runner.el's Introduction

ert-runner.el

Ert-runner is a tool for Emacs projects tested using Ert. It assumes a certain test structure setup and can therefore make running tests easier.

Installation

Add ert-runner to your Cask file:

(depends-on "ert-runner")

Usage

View usage information:

$ cask exec ert-runner help

Create new test directory and files:

$ cask exec ert-runner init

Run all tests:

$ cask exec ert-runner

Run specific tests:

$ cask exec ert-runner test/foo-test.el test/bar-test.el

Run test whose name matches a pattern:

$ cask exec ert-runner -p pattern

Load custom files before running tests:

$ cask exec ert-runner -l test/custom.el

Run all tests whose name matches emacs-23-only and load ert.el from vendor since it's not included in Emacs-23:

$ cask exec ert-runner -p emacs-23-only -l vendor/ert.el

Run all tests which are tagged emacs-23-only or all-emacsen:

$ cask exec ert-runner -t emacs-23-only,all-emacsen

Run all tests which are not tagged emacs-24-only:

$ cask exec ert-runner -t !emacs-24-only

Run all tests, whose name matches request, and which are tagged fast or important, but not network:

$ cask exec ert-runner -p request -t fast,important -t !network

Run in "no win" mode:

$ cask exec ert-runner --no-win

Configuration

You can add a .ert-runner file (one option per row) with options you always want to include, for example:

-l test/ert-loader.el

Projects using

Contribution

Contribution is much welcome!

Install cask if you haven't already, then:

$ cd /path/to/ert-runner.el
$ cask

Run all tests with:

$ make

ert-runner.el's People

Contributors

camdez avatar chrycheng avatar fuco1 avatar hatheroldev avatar immerrr avatar jorgenschaefer avatar phillord avatar phst avatar rejeep avatar remyhonig avatar sergeyklay avatar swsnr avatar tarsius avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.