test ren/ on CI

This commit is contained in:
Anton Dyudin 2018-03-27 17:42:36 -07:00
parent f81d7f0155
commit ba417d3d9b

View File

@ -29,6 +29,21 @@ Promise.resolve urbit
errs := Object.keys errs errs := Object.keys errs
if errs.length => throw Error "in #errs" if errs.length => throw Error "in #errs"
urb.reset-listeners! urb.reset-listeners!
.then (urb)->
urb.note "Testing renderers"
errs = {} #REVIEW stream reduce?
cur = "init"
urb.every />> (\[[ -~]+)/ ([_,ren])-> cur := ren
urb.every ERROR, ->
unless errs[cur]
errs[cur] = true
urb.warn "Renderer error detected"
#
<- urb.line ":test [%renders /]" .then
<- urb.expect-echo "%renderers-tested" .then
errs := Object.keys errs
if errs.length => throw Error "in #errs"
urb.reset-listeners!
.then (urb)-> .then (urb)->
urb.note "Running /===/tests" urb.note "Running /===/tests"
errs = "" #REVIEW stream reduce? errs = "" #REVIEW stream reduce?