2025-06-23 13:18:59 +02:00
|
|
|
import std/os
|
2025-06-25 10:56:16 +02:00
|
|
|
import std/strutils
|
2025-06-23 13:18:59 +02:00
|
|
|
import ./imports
|
|
|
|
|
|
2025-06-25 10:56:16 +02:00
|
|
|
## Limit which integration tests to run by setting the
|
|
|
|
|
## environment variable during compilation. For example:
|
|
|
|
|
## CODEX_INTEGRATION_TEST_INCLUDES="testFoo.nim,testBar.nim"
|
|
|
|
|
const includes = getEnv("CODEX_INTEGRATION_TEST_INCLUDES")
|
|
|
|
|
|
|
|
|
|
when includes != "":
|
|
|
|
|
# import only the specified tests
|
|
|
|
|
importAll(includes.split(","))
|
|
|
|
|
else:
|
|
|
|
|
# import all tests in the integration/ directory
|
|
|
|
|
importTests(currentSourcePath().parentDir() / "integration")
|
2022-05-18 14:31:45 +02:00
|
|
|
|
2023-03-09 12:23:45 +01:00
|
|
|
{.warning[UnusedImport]: off.}
|