Fork me on GitHub
#devcards
<
2015-09-22
>
Tom H.10:09:56

Am I going crazy or did the test card used to have ticks and crosses?

bhauman13:09:04

@tomisme: devcards went through a complete rewrite, got rid of all the extra fluff

Tom H.13:09:34

@bhauman no worries, just a sanity check

darwin19:09:23

I’m wondering how to reuse existing tests and show them in devcards

darwin20:09:15

assume I have bunch of deftests in some other namespace, I want to import them into devcard namespace and create a bunch of cards with those tests embedded optionally with some additional documentation

bhauman22:09:42

@darwin: this is easy, just use devcards.core /deftest is works for both cases.

bhauman22:09:10

It defines the cljs.test as well as the devcards test

darwin22:09:34

thanks, I will use it

darwin22:09:12

I was hoping for “importing” existing deftests from other namespaces, but not sure if it would be possible

darwin22:09:39

that would probably need a special defcard which could hook into cljs.test machinery