Arrow.jl icon indicating copy to clipboard operation
Arrow.jl copied to clipboard

add unit tests!!!

Open ExpandingMan opened this issue 6 years ago • 4 comments

We need proper unit testing so that we can make changes and merge PR's properly. I'll try to get to this right after I do 0.7 updates.

ExpandingMan avatar Mar 02 '18 14:03 ExpandingMan

Have added some fairly extensive unit tests that mostly test whether getindex and various ArrowVector constructors are working properly. Still need to add more, particularly for writing data.

ExpandingMan avatar Mar 07 '18 15:03 ExpandingMan

Just to second that, code coverage right now is sparse :)

https://codecov.io/gh/ExpandingMan/Arrow.jl

davidanthoff avatar Mar 14 '18 05:03 davidanthoff

Yes, I've noticed that. I might actually consider getting rid of some of the constructors, there are probably too many of them, I feel like half of this package is constructors. The tests I've added so far were intended to make damn sure that this will never segfault (at least not because of Arrow, users can still cause it). Feather tests have also been very helpful with ensuring that. Fortunately 0.7 detects a large class of segfaults and throws a proper error for a large class of them at seemingly zero cost, so that's good.

Tests that we are currently missing that I am most concerned about are for writing.

ExpandingMan avatar Mar 14 '18 15:03 ExpandingMan

Phew... ok I now have in a hell of a lot more unit tests. I haven't seen what the coverage is yet, but now pretty much all of the "important" stuff is being tested. Probably not going to do more myself for quite a while.

ExpandingMan avatar Mar 25 '18 21:03 ExpandingMan