News for hackers. Stuff that matters.
Re:Retro on the Julia Programming Language by SixSigma on Thursday April 14, 2016 @10:02AM (#11496742)
Hi Philip,

You labast the lack of testing tools but one of the other blog posts [1] is about how you built a testing framework.

We're just just being kind in that blog post because you didn't really spell out any shortcomings then ?

[1]

Re:Retro on the Julia Programming Language by tavert on Thursday April 14, 2016 @04:29PM (#11500084)
Re:Retro on the Julia Programming Language by SixSigma on Friday April 15, 2016 @02:29AM (#11502581)
Yes, thanks. Seems I didn't finish my post before I hit submit - someone came into the room to collect me and I had to log out quickly. By the time I noticed the edit window was closed.
Re:Retro on the Julia Programming Language by philip1209 on Thursday April 14, 2016 @01:20PM (#11498635)
Testing support is basic and, when we started, there were no clear best practices - so we published how we organized our repo.

The `@test foo` command basically raises an exception if the result is false. You have to manually register all of the tests and call them individually. setUp and tearDown has to be done manually. The testing library keeps no data about how many tests were run - it just throws an exception if an `@test` encounters a false.

It works, but there is no sophistication.

Re:Retro on the Julia Programming Language by idunning on Thursday April 14, 2016 @03:56PM (#11499848)
This is partially fixed in Julia 0.5 (or available now as BaseTestNext.jl in Julia 0.4). Its basically a backwards-compatible rewrite of the former Base.Test that adds the notion of test sets - enabling counting tests by default, but also not immediately failing out on the first bad test and even logging.