Hi Dan, thank you for such an organized and principled approach to project layou...

Panayotis Mavromatis Answered 3 answers
Question by Panayotis Mavromatis 2 years ago

Question

Hi Dan, thank you for such an organized and principled approach to project layout. I feel safe following your lead on this. I have studied C, but have never attempted a large-scale project in that language. I feel a bit nervous not having unit tests around. Is this something you have found helpful in your work with C? If so, is there a unit test library for C that you would recommend? I am eager to add my own unit tests as I follow along. Many thanks in advance!

Answers

Answered by Daniel McCarthy

Instructor

Hello, your very welcome. We do not do unit tests in the compiler project because the compiler its self is so large so building unit tests would be a waste of lesson time, the course as it stands is over 40 hours long so with unit tests that would easily add another 4-5 hours, for this reason the choice not to include unit tests was made. If you insist on making unit tests I have heard CUnit is useful.

Many thanks
Dan

Follow-up by Panayotis Mavromatis

Question author

Hi Dan, thank you for your quick reply. This is helpful. Yes, it makes sense re: lesson time. I may give CUnit a try.

Answered by Zachary Rowitsch

Student

One that I have used for a bunch of projects is "Unity" by ThrowTheSwitch on github