bootstrap-clj

Bootstrapping in Clojure.

License

License

GroupId

GroupId

com.github.sebhoss
ArtifactId

ArtifactId

bootstrap-clj
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

clojure
Description

Description

bootstrap-clj
Bootstrapping in Clojure.
Project URL

Project URL

https://github.com/sebhoss/bootstrap-clj
Source Code Management

Source Code Management

https://github.com/sebhoss/bootstrap-clj

Download bootstrap-clj

Dependencies

compile (3)

Group / Artifact Type Version
org.clojure : clojure jar
org.clojure : tools.namespace jar
org.clojure : tools.nrepl jar

Project Modules

There are no modules declared in this project.

bootstrap-clj

Bootstrapping REPL-based Clojure development.

Usage

The namespace bootstrap.repl offers the following functions:

  • (load-ns-in-dir-aliased dir) Loads all namespaces inside the given directory (recursively).
  • (load-helpers) Loads helper functions for REPL-based work. Includes all of clojure.test such as run-all-tests, all of clojure.repl such as doc, source and all of clojure.tools.namespace.repl such as refresh, etc..
  • (test-shortcut regex) Returns a function which executes all tests matching the given regex.

Example

Place the following in user.clj or a similar file which gets loaded once your REPL session starts. (see bootstraps own bootstrap )

(require '[bootstrap.repl :refer :all])

; Load project namespaces
(load-ns-in-dir-aliased "src/main/clojure")

; 'clojure.test', 'clojure.repl' and 'clojure.tools.namespace.repl' support
(load-helpers)

; shortcut to tests inside project namespaces
(def rat (test-shortcut #"foo.bar.*-test")) ; use (rat) to run all tests

Happy hacking!

Integration

Maven

<dependencies>
  <dependency>
    <groupId>com.github.sebhoss</groupId>
    <artifactId>bootstrap-clj</artifactId>
    <version>[2.0.0,3.0.0)</version>
    <scope>test</scope>
  </dependency>
</dependencies>

Leiningen

[com.github.sebhoss/bootstrap-clj "[2.0.0,3.0.0)" :scope "test"]

License

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

Versions

Version
2.0.0
1.1.0
1.0.1
1.0.0