[Nfd-dev] NFD new unit testing guidelines

Junxiao Shi shijunxiao at email.arizona.edu
Mon Mar 3 15:45:56 PST 2014


Hi NFD developers

There are some changes in unit testing:

   - Tests should be in nfd::tests namespace. This avoids potential name
   conflicts with main program.
   - Test fixtures should derive from nfd::tests::BaseFixture. Test cases
   should use a fixture derived from BaseFixture. This ensures global
   io_service is correctly created and destroyed for each test case.
   - LimitedIo class is provided for IO count and time limits.

Please read details on
http://redmine.named-data.net/projects/nfd/wiki/UnitTesting
Code reviewers will enforce these requirements.

Yours, Junxiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20140303/9e8b8f59/attachment.html>


More information about the Nfd-dev mailing list