.. index:: single: tap_report
.. _tap_report/0:

.. rst-class:: right

**object**

``tap_report``
==============

Intercepts unit test execution messages and generates a ``tap_report.txt`` file using the TAP output format in the same directory as the tests object file.

| **Availability:** 
|    ``logtalk_load(lgtunit(loader))``

| **Author:** Paulo Moura
| **Version:** 6:0:0
| **Date:** 2025-04-07

| **Compilation flags:**
|    ``static, context_switching_calls``


| **Provides:**
|    :ref:`logtalk::message_hook/4 <logtalk/0::message_hook/4>`
| **Uses:**
|    :ref:`logtalk <logtalk/0>`

| **Remarks:**

   - Usage: Simply load this object before running your tests using the goal ``logtalk_load(lgtunit(tap_report))``.

| **Inherited public predicates:**
|    (none)

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

(no local declarations; see entity ancestors if any)

Protected predicates
--------------------

(no local declarations; see entity ancestors if any)

Private predicates
------------------

.. index:: partial_/1
.. _tap_report/0::partial_/1:

``partial_/1``
^^^^^^^^^^^^^^

Cache of total of tests per test set.

| **Compilation flags:**
|    ``dynamic``

| **Template:**
|    ``partial_(Count)``
| **Mode and number of proofs:**
|    ``partial_(?integer)`` - ``zero_or_more``


------------

.. index:: test_count_/1
.. _tap_report/0::test_count_/1:

``test_count_/1``
^^^^^^^^^^^^^^^^^

Test counter.

| **Compilation flags:**
|    ``dynamic``

| **Template:**
|    ``test_count_(Count)``
| **Mode and number of proofs:**
|    ``test_count_(?integer)`` - ``zero_or_one``


------------

Operators
---------

(none)

