{"action":"created","issue":{"url":"https://api.github.com/repos/acados/acados/issues/14","repository_url":"https://api.github.com/repos/acados/acados","labels_url":"https://api.github.com/repos/acados/acados/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/acados/acados/issues/14/comments","events_url":"https://api.github.com/repos/acados/acados/issues/14/events","html_url":"https://github.com/acados/acados/issues/14","id":185219532,"number":14,"title":"Unit tests","user":{"login":"roversch","id":1436556,"avatar_url":"https://avatars.githubusercontent.com/u/1436556?v=3","gravatar_id":"","url":"https://api.github.com/users/roversch","html_url":"https://github.com/roversch","followers_url":"https://api.github.com/users/roversch/followers","following_url":"https://api.github.com/users/roversch/following{/other_user}","gists_url":"https://api.github.com/users/roversch/gists{/gist_id}","starred_url":"https://api.github.com/users/roversch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roversch/subscriptions","organizations_url":"https://api.github.com/users/roversch/orgs","repos_url":"https://api.github.com/users/roversch/repos","events_url":"https://api.github.com/users/roversch/events{/privacy}","received_events_url":"https://api.github.com/users/roversch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/acados/acados/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/acados/acados/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-25T20:04:20Z","updated_at":"2016-10-26T06:16:03Z","closed_at":null,"body":"Unit testing is certainly going to be an important part for acados, as we want to be flexible in adding modules. For the moment, I see the following alternatives to be able to start unit testing ASAP.\r\n\r\n1. Write unit tests in pure C (e.g. [check](https://libcheck.github.io/check/web/install.html))\r\n2. Write unit tests in Python, and call the C functions with [ctypes](http://python.net/crew/theller/ctypes/)\r\n3. Write a small SWIG wrapper and do unit tests from either Python or Matlab (eventually, we can call the C functions through casadi, see #1 , but it's probably too long of a process to wait for)\r\n\r\nWhatever way we choose, we should start with writing tests for the following:\r\n1. Condensing\r\n2. QP solution (although this is actually the burden of the respective solvers)\r\n3. Integrators @rienq what's the best way to approach this?"},"comment":{"url":"https://api.github.com/repos/acados/acados/issues/comments/256258908","html_url":"https://github.com/acados/acados/issues/14#issuecomment-256258908","issue_url":"https://api.github.com/repos/acados/acados/issues/14","id":256258908,"user":{"login":"mvukov","id":2706319,"avatar_url":"https://avatars.githubusercontent.com/u/2706319?v=3","gravatar_id":"","url":"https://api.github.com/users/mvukov","html_url":"https://github.com/mvukov","followers_url":"https://api.github.com/users/mvukov/followers","following_url":"https://api.github.com/users/mvukov/following{/other_user}","gists_url":"https://api.github.com/users/mvukov/gists{/gist_id}","starred_url":"https://api.github.com/users/mvukov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvukov/subscriptions","organizations_url":"https://api.github.com/users/mvukov/orgs","repos_url":"https://api.github.com/users/mvukov/repos","events_url":"https://api.github.com/users/mvukov/events{/privacy}","received_events_url":"https://api.github.com/users/mvukov/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T06:16:03Z","updated_at":"2016-10-26T06:16:03Z","body":"FWIW, testing execution of ACADO examples is __not__ unit testing. Those are very rudimentary end-to-end testing, where we only check that examples don't crash, but does not tell anything about quality of results. There is one unit test in the `tests` folder -- that might be a good starting point for you. On the other hand, my recommendation would be to use Google's [gtest](https://github.com/google/googletest) (and it looks to me more flexible than `check`)."}}
{"actor":{"display_login":"mvukov"}}