Olical / cljs-test-runner

Discover and run your ClojureScript tests
https://clojars.org/olical/cljs-test-runner
The Unlicense
86 stars 16 forks source link

Read inline EDN compiler opts #28

Closed aria42 closed 5 years ago

aria42 commented 5 years ago

Added ability for load-opts to read the -c flag as EDN to support common use-case of just needing to add {:optimizations :advanced} without needing to have an EDN file. Tested via following command.

The existing behavior of passing a file also works. The -c option looks to see if it the first non-whitespace character is \{ and treats as EDN, otherwise falls back to file.

 clj -Adev -m cljs-test-runner.main -c '{:optimizations :advanced}'
Olical commented 5 years ago

This is really neat! I like it, thank for updating the readme too, I'll get this out now. Thanks a lot! :clap: :tada: