improve test harness
use overmind and entr to run tests whenever files change
This commit is contained in:
parent
0e103a673c
commit
ce009f2c7b
|
@ -17,10 +17,20 @@
|
|||
</body>
|
||||
|
||||
|
||||
<h2>Features</h2>
|
||||
|
||||
Dunlin is a GTK-based Webkit browser which can be extended in
|
||||
(indeed, is mostly written in) Fennel.
|
||||
|
||||
<h2>Hacking</h2>
|
||||
|
||||
<pre>
|
||||
$ nix-shell
|
||||
nix-shell$ overmind start -D
|
||||
nix-shell$ overmind connect
|
||||
</pre>
|
||||
|
||||
This starts a fennel interpreter and a test runner in tmux windows.
|
||||
Use <pre>C-b n</pre> to switch between them or <pre>C-b d</pre>
|
||||
to detach.
|
||||
|
||||
|
||||
</html>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
with import <nixpkgs> {} ;
|
||||
let just = callPackage ./. {};
|
||||
in just.overrideAttrs(o: {
|
||||
nativeBuildInputs = o.nativeBuildInputs ++ [ pkgs.socat ];
|
||||
nativeBuildInputs = o.nativeBuildInputs ++ (with pkgs; [
|
||||
socat
|
||||
overmind
|
||||
entr
|
||||
]);
|
||||
JUST_HACKING = 1;
|
||||
})
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
for i in test/*.fnl; do
|
||||
fennel --correlate $i && echo $i OK
|
||||
done
|
Loading…
Reference in New Issue