Provide infrastructure to write tests for a module #427

Closed
opened 2026-10-05 04:20:14 +02:00 by adam · 1 comment
Owner

Perhaps something like the following:

$ znc-testmod <module.cpp> <*moduletests.cpp>

Expecting the modules use gtest like ZNC, it would compile the module and the tests and run them together with ZNC linked to the module.

Perhaps also providing some form of API for the tests to ease loading the module configured globally, as network or as a user.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7008334-provide-infrastructure-to-write-tests-for-a-module?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github).
Perhaps something like the following: ``` bash $ znc-testmod <module.cpp> <*moduletests.cpp> ``` Expecting the modules use gtest like ZNC, it would compile the module and the tests and run them together with ZNC linked to the module. Perhaps also providing some form of API for the tests to ease loading the module configured globally, as network or as a user. ## <bountysource-plugin> --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/7008334-provide-infrastructure-to-write-tests-for-a-module?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1759&utm_medium=issues&utm_source=github). </bountysource-plugin> <!-- github-sync-id:51924865 -->
adam closed this issue 2026-10-05 04:20:14 +02:00
Author
Owner

Does existing integration tests (make install && make test2) satisfy this?
It tests several modules.

Does existing integration tests (`make install && make test2`) satisfy this? It tests several modules. <!-- github-comment-id:163457460 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#427