Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

30 lines (21 loc) · 1.12 KB

RCF Clojars Project

This is helper module to automate enabling hyperfiddle/rcf or running all of your rcf tests on CI.

Usage

Adding a dev preload

For enabling hyperfidde you can add the following preload to shadow-cljs com.avisi-apps.gaps.rcf.preload. This looks as follows:

:devtools {:preloads [com.avisi-apps.gaps.rcf.preload]}

It is a good idea to also add your dev startup ns before com.avisi-apps.gaps.rcf.preload this makes sure that rcf only runs test for reloaded namespaces instead of all tests in your project which get required by your bootstrap

Extracting tests for CI

When you write a lot of inline test it would be nice if those tests get ran on CI. There is hook for that com.avisi-apps.gaps.rcf.shadow-cljs.hook below is an example build for creating a build to run NodeJS tests:

{:target :node-test
 :output-to "modules/test/index.js"
 :ns-regexp "-test$"
 :build-hooks [(com.avisi-apps.gaps.rcf.shadow-cljs.hook/hook)]}