findtests
A helper module for writing unit tests in Nim with nake or similar build system.
Summary
| Latest Version | Unknown |
|---|---|
| License | ISC |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install findtests
choosenim install findtests
git clone https://github.com/jackvandrunen/findtests
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| findtests | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/jackvandrunen/findtests |
|---|---|
| Homepage | https://github.com/jackvandrunen/findtests |
| Registry Source | nimble_official |
README
findtests
A helper module for writing unit tests with nake or similar build system. Automatically discovers all tests in a test directory, along with all of their dependencies, so one can determine whether a given test needs to be rebuilt.
Example usage:
import nake
import findtests
task "test", "Update module builds and run tests":
for testSrcs in findTests("./tests"):
let target = testSrcs[0][0..^5] # the build target (without .nim)
if needsRefresh(target, testSrcs):
direShell(nimExe, "c", "-r", target)