This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-10
Channels
- # beginners (97)
- # boot (77)
- # cider (7)
- # cljs-dev (47)
- # cljsrn (3)
- # clojure (125)
- # clojure-austin (5)
- # clojure-dusseldorf (1)
- # clojure-italy (4)
- # clojure-russia (91)
- # clojure-spec (80)
- # clojure-uk (54)
- # clojurescript (92)
- # core-async (6)
- # cursive (17)
- # datomic (56)
- # hoplon (7)
- # immutant (3)
- # liberator (3)
- # luminus (4)
- # off-topic (26)
- # om (41)
- # om-next (11)
- # pedestal (3)
- # perun (3)
- # protorepl (25)
- # re-frame (32)
- # reagent (33)
- # ring (46)
- # rum (3)
- # spacemacs (5)
- # specter (82)
- # test-check (16)
- # untangled (8)
- # yada (26)
Hello, I use spec for testing and as soon as I add this to my code: (stest/summarize-results (stest/check
paintings2.api-get/get-data-detail-page))`
@roelof wrap it in a function definition and call the function when you need to. proto-repl will reload all your code on connecting, which means it’ll run any top-level forms that Do Things
@robert-stuttaford oke, so I cannot place only the (stest .... )
part
into a defn
, yes
Thanks, It worked . When I do
(defn test-functions
"all the test"
[]
(stest/summarize-results (stest/check 'paintings2.api-get/get-objectNumbers))
(stest/summarize-results (stest/check 'paintings2.api-get/get-art-object))
(stest/summarize-results (stest/check 'paintings2.api-get/get-data-detail-page))
(stest/summarize-results (stest/check 'paintings2.api-get/get-data-front-page))
(stest/summarize-results (stest/check `paintings2.api-get/get-image-url))
(stest/summarize-results (stest/check `paintings2.api-get/get-data-front-page-url))
(stest/summarize-results (stest/check `paintings2.api-get/get-data-detail-page)))
I see this :
{:sym paintings2.api-get/get-objectNumbers}
{:sym paintings2.api-get/get-art-object}
{:sym paintings2.api-get/get-data-detail-page}
{:sym paintings2.api-get/get-data-front-page}
{:sym paintings2.api-get/get-image-url}
{:sym paintings2.api-get/get-data-detail-page}
paintings2.api-get=>
{:check-passed 1, :total 1}
sure thing
@roelof check
can test all your speced functions when called with no arguments so you can even avoid all those check calls 😉
@carocad it;s not working. I see only this output
{:sym paintings2.api-get/get-objectNumbers}
{:sym paintings2.api-get/get-data-detail-page}
This needs more investigations , Also with the old code things are failing where this morning everything works well