[haiku-bugs] Re: [Haiku] #12249: Document tests / unit tests in developer docs?

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 09 Mar 2017 08:04:36 -0000

#12249: Document tests / unit tests in developer docs?
-----------------------------+-------------------
   Reporter:  tqh            |      Owner:  nielx
       Type:  enhancement    |     Status:  new
   Priority:  normal         |  Milestone:
  Component:  Documentation  |    Version:
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:
Has a Patch:  0              |   Platform:  All
-----------------------------+-------------------

Comment (by pulkomandy):

 There are some pages about it on the website:
 https://www.haiku-os.org/documents/dev/unit_testing/ ;(deprecated, from
 before we were using Jam and SVN!)
 https://www.haiku-os.org/documents/dev/unit_testing_part_deux
 https://www.haiku-os.org/documents/dev/template_madness_unit_test_policy/
 https://www.haiku-
 os.org/blog/yourpalal/2010-06-18_unit_testing_fun_and_profit/ (up to date
 on writing tests, but not much info on running them)

 Usually I run them from Haiku like this:

 {{{
 jam -q unittests
 UnitTester
 }}}

 It is currently not possible to run the tests on a non-Haiku host. It is
 possible to build them, and our builbots do so (this at least make sure
 they compile).

 The UnitTester harness is the tool you will use to run the tests. It
 allows to run all of them, a specific one, or a group of tests. Not all
 the tests in src/test use the harness however, some are just simple manual
 test applications.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12249#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: