Giter Site home page Giter Site logo

lfe-rebar3 / ct Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metajack/rebar_lfe_ct_plugin

0.0 7.0 0.0 69 KB

Rebar plugin for writing Common Test suites using LFE

Home Page: https://github.com/metajack/rebar_lfe_ct_plugin

License: Apache License 2.0

ct's Introduction

Rebar LFE Commonn Test Plugin

This plugin allows Common Test suites to be written in LFE. It runs before the normal rebar ct task and compiles all .lfe files in the test subdirectory.

Usage

In the rebar.config file of your project, add:

{plugins, [rebar_lfe_ct_plugin]}.

And copy rebar_lfe_ct_plugin.erl to your project's plugins directory.

You will also need to make sure LFE is a dependency of your project by adding the following dependency information to the deps section of your rebar.config.

{lfe, ".*", {git, "git://github.com/rvirding/lfe.git", "head"}}

Example LFE Common Test Suite

(defmodule example_SUITE
  (export (all 0)
  (should_fail 1)
  (should_pass 1)))

(defmacro assert (pat expr)
  `(let* ((val ,expr)
          (pat val))
     val))

(defun all ()
  (list 'should_fail 'should_pass))

(defun should_fail (config)
  (assert 1 2))

(defun should_pass (config)
  (assert 1 1))

ct's People

Contributors

metajack avatar

Watchers

Torbjörn Törnkvist avatar Robert Virding avatar  avatar  avatar Correl Roush avatar James Cloos avatar  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.