Giter VIP home page Giter VIP logo

boot-cljs-test's Introduction

boot-cljs-test

Boot task to run ClojureScript tests.

[crisptrutski/boot-cljs-test "0.2.0-SNAPSHOT"] ;; latest release

There are no stable releases yet - this is brand spanking new.

Usage

The simple way:

  1. Add top-level require for '[crisptrutski.boot-cljs-test :refer [test-cljs]] to build.boot.
  2. Set (task-options! test-cljs {:js-env :phantom}), substituting test runner of your choice.
  3. Create a task to add tests to class path (ie. (set-env! :source-paths #(conj % "test"))) and run test-cljs.

More advanced usage:

This library provides two lower level tasks, prep-cljs-tests and run-cljs-tests, which are designed to run before and after Clojurescript compilation (eg. by cljs task in boot-cljs).

The test-cljs task merely composes those tasks with the cljs task, with sensible defaults. That includes ignoring any *.cljs.edn files in your fileset, to ensure tests and generated suite file are included in the compile.

Examples of workflows achievable by composing these smaller tasks manually:

  1. configuring requires and entry point for output file in a .cljs.edn file
  2. building multiple test suites in a single pass
  3. building test suites and dev / production / other outputs in same cljs pass
  4. running the same test in multiple environments (eg. v8 and spidermonkey, or headless and browser)

boot-cljs-test's People

Contributors

crisptrutski avatar martinklepsch avatar

Watchers

 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.