d3adb5 / d3adb5/nmonad

Add tests for NMonad.DBus that spawn temp daemons in containers

Open
#3 0 comments 0 reactions 1 assignee Claimed by @d3adb5 View on GitHub
enhancement help wanted
Dominant language
Haskell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

To have tests that cover the `NMonad.DBus` module, it is necessary to make use of DBus daemons, preferably running inside temporary test containers.

Running containers for unit / integration tests is not a new concept, and support for them exists in Haskell to a limited extended in [testcontainers](https://hackage.haskell.org/package/testcontainers-0.5.0.0). In fact, work into this has been done in [test/add-dbus-tests](https://github.com/d3adb5/nmonad/tree/test/add-dbus-tests).

DBus authentication and the very package for Haskell have proven to be a bit of a roadblock. Running commands inside provisioned containers, which is straightforward when working with test containers in imperative languages, is also something to look into so we do not depend on packages being installed locally.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.