You can supply your own reporter and instead of printing you can aggregate results.
David On Fri, Feb 27, 2015 at 3:18 PM, Andrey Antukh <[email protected]> wrote: > Hi! > > I'm not clearly understand how I can get the number of failed tests when > run test with cljs.test and return proper exit-code. > > I have previously experimented with run.js and with :main option on cljs > compiler. But in all cases i found the same behavior. > > I don't know a proper way for obtain a result after test are run for > proper set nodejs process.exitCode property... > > - The `run-tests` function does not returns any result. > - Passing custom env to `run-test` has same effect. > - I have tried set the env with binding (obviously, same effect) > > I have read the documentation (the docstrings) but I do not find any > relevant that can help me. > > I'm currently have tests with cljs.test (sync and async) on varios apps > running with nodejs and the only way to see if tests pases is viewing the > output to the console. Without proper returncode when tests are failing > travis (or any other service for tests) does not work properly. > > Thanks! > > Cheers. > Andrey > > -- > Andrey Antukh - Андрей Антух - <[email protected]> / < > [email protected]> > http://www.niwi.be <http://www.niwi.be/page/about/> > https://github.com/niwibe > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
