mpelleau / AbSolute

Constraint solver based on abstract domains
GNU Lesser General Public License v3.0
30 stars 7 forks source link

Choosing a testing library for AbSolute #6

Open ptal opened 6 years ago

ptal commented 6 years ago

AbSolute does not seem to have a test library/framework yet, and I would need one to make simple tests on the octagon abstract domain I'm developing. Since I won't (shouldn't ? ;-)) be the only one to use it, I prefer to ask what is your preference. After a quick look on the ones available in OPAM, my preference goes to ppx_inline_test for the following reasons:

What do you think?

MarechalAlex commented 6 years ago

There is a "make check" command to run some non-regression tests. If think they are handmade, meaning that they don't use any existing testing framework.

What kind of tests do you plan to make? Unit tests of functions?

ptal commented 6 years ago

Yes, unit tests. Black box tests are good and necessary too, but not for details / invariants of algorithms / ...

ptal commented 6 years ago

I use alcotest on my fork, which is not invasive, without ppx macro, and seems to work great so far!

ghilesZ commented 6 years ago

I agree alcotest looks great.

ptal commented 6 years ago

Especially the name.

mpelleau commented 6 years ago

Do you want to deploy it?

ptal commented 6 years ago

I forgot to push the changes on my fork but I already set up everything here (the build file, and the test/ repository), so we just need to pull-request this part (although I don't know how to pull request only that part and not the rest...).