rcf icon indicating copy to clipboard operation
rcf copied to clipboard

rework *enabled* accounting for CLJS compiletime/runtime

Open dustingetz opened this issue 3 years ago • 1 comments

  • Perhaps two flags – *erase* and *enable* (or *disable*)
  • Should we make everything run by default?

List of cases when we do NOT want tests to run:

  • do not test on JVM REPL startup (big projects do not want to load any namespaces at all for fast REPL startup times)
  • do not test during clojurescript hot code reload (JS runtime)
  • do not test during clojurescript macroexpansion (JVM macroexpansion time), see #67
  • tests should erase entirely in prod

There may be some other way to design the flags to achieve these behaviors. The requirement to erase tests by default perhaps can be waived if other reqs are met.

dustingetz avatar Aug 29 '22 11:08 dustingetz

https://clojurians.slack.com/archives/C7Q9GSHFV/p1661662217708859

dustingetz avatar Aug 29 '22 11:08 dustingetz