devcards

Devcards aims to provide a visual REPL experience for ClojureScript https://github.com/bhauman/devcards
lsenta 2016-10-13T07:47:55.000112Z

Hi guys, just found your channel, I was bumping clojurescript about this question: https://clojurians.slack.com/archives/clojurescript/p1476344238008509

lsenta 2016-10-13T07:48:18.000114Z

basically I’d like to have my SPA running in figwheel and devcards for my tests running in another figwheel instance

lsenta 2016-10-13T07:49:02.000115Z

I thought I could simply lein figwheel to access my SPA and lein figwheel devcards to access my tests, setting a different server port but figwheel won’t let me

lsenta 2016-10-13T07:49:33.000116Z

Do you guys have advices on setting a TDD env where I can have the main app and the devcards running side by side?

bhauman 2016-10-13T13:49:14.000117Z

@lsenta: the solution is to run both in the same process: lein figwheel spa devcards

👍 1
lsenta 2016-10-13T16:32:07.000118Z

@bhauman thanks for the advice! Running both builds and serving different spa.html with the same instances didn’t occurred to me, it’s working and it looks great

bhauman 2016-10-13T16:33:18.000119Z

@lsenta glad it worked for you

lsenta 2016-10-13T16:35:09.000120Z

2 last questions, hopefully 🙂 - is there a way to show the line number in the deftest cards? to help finding what’s broken. - are there any workaround for https://github.com/bhauman/devcards/issues/104? I have some async fixtures that setups firebase, reframe & others before testing. Is there a “right” way to do this setup with tests devcards?

bhauman 2016-10-13T16:39:18.000123Z

@lsenta there is not standard way of setting up test data that I'm aware of

bhauman 2016-10-13T16:40:12.000124Z

And the tests do not report line numbers.

lsenta 2016-10-13T18:05:57.000127Z

Got it, thank you sir!