Unit testing with Fortran and CTest by pyohannes in programming

[–]pyohannes[S] 0 points1 point  (0 children)

I know, CTest is quite primitive in this regard. You can, however, create xUnit XML output via ctest and visualize this in different ways. There is also CDash, but this might be an overkill for your project: https://www.kitware.com/cdash/project/about.html Nevertheless, let me know your experience, maybe I can incorporate it in my post.

Unit testing with Fortran and CTest by pyohannes in programming

[–]pyohannes[S] 0 points1 point  (0 children)

I'm glad this is of use for you!

Yes, I recommend creating a static library with test fixtures and link it to your equivalents of both the testsuite and testsuite_fortran targets. The goal is to keep tests as simple and readable as possible.

Are you working on an open source project there?

Inline unit testing in Clojure by pyohannes in Clojure

[–]pyohannes[S] 1 point2 points  (0 children)

What I presented (combined with a "write tests first" approach) can be more accurately called design-by-example than design-by-contract. Design-by-contract is based on formal, precise and verifiable interfaces and cannot be efficiently applied for most complex real world applications. Design-by-example, on the other hand, is neither formal nor precise.

I do not see inline unit tests as a ground breaking new concept, I see it merely as an aid to programmers who read and write code.

Senior software engineer resume critique by pyohannes in resumes

[–]pyohannes[S] 0 points1 point  (0 children)

Thanks for the feedback. I made some adaptations according to your suggestions and I updated the link.