protorepl

roelof 2017-01-10T12:56:51.000517Z

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 2017-01-10T12:57:18.000518Z

then the proto-repl will not boot up properly.

roelof 2017-01-10T12:57:34.000519Z

I have disabled all the refresh part in the settings already

roelof 2017-01-10T12:57:47.000520Z

Anyone a idea how to make this work

robert-stuttaford 2017-01-10T13:11:39.000521Z

@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

roelof 2017-01-10T13:14:36.000523Z

@robert-stuttaford oke, so I cannot place only the (stest .... ) part

roelof 2017-01-10T13:15:18.000524Z

I have to make some sort of function of it so put the (stest ) into a (def ..... )

robert-stuttaford 2017-01-10T13:22:53.000525Z

into a defn, yes

roelof 2017-01-10T13:23:09.000526Z

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))) 

roelof 2017-01-10T13:23:37.000527Z

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}   

roelof 2017-01-10T13:23:43.000528Z

so im happy now

roelof 2017-01-10T13:24:03.000529Z

Thanks a lot

robert-stuttaford 2017-01-10T13:25:47.000530Z

sure thing

2017-01-10T14:15:07.000531Z

@roelof check can test all your speced functions when called with no arguments so you can even avoid all those check calls 😉

roelof 2017-01-10T14:36:16.000532Z

@carocad oke, so I have to do (stest/checks) ?

2017-01-10T14:36:54.000533Z

(stest/summarize-results (stest/check)) should do the job

roelof 2017-01-10T14:37:06.000534Z

oke, then I understand you well

roelof 2017-01-10T14:37:08.000535Z

thanks

roelof 2017-01-10T14:39:31.000536Z

@carocad it;s not working. I see only this output

{:sym paintings2.api-get/get-objectNumbers}
{:sym paintings2.api-get/get-data-detail-page} 

roelof 2017-01-10T14:41:49.000537Z

and then a spec is failing

roelof 2017-01-10T14:45:21.000538Z

This needs more investigations , Also with the old code things are failing where this morning everything works well

2017-01-10T14:46:58.000540Z

it should show you if the error is on your side

roelof 2017-01-10T14:48:32.000541Z

oke, I think I found something , I will ask in the beginners channel for help

roelof 2017-01-10T14:48:38.000542Z

@carocad thanks