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
|
2025-10-22 12:22:33 +04:00
|
|
|
importTests(
|
|
|
|
|
currentSourcePath().parentDir() / "integration" / "1_minute", "testpurchasing"
|
|
|
|
|
)
|
|
|
|
|
importTests(
|
|
|
|
|
currentSourcePath().parentDir() / "integration" / "5_minutes", "testsales"
|
|
|
|
|
)
|
2022-05-18 14:31:45 +02:00
|
|
|
|
2023-03-09 12:23:45 +01:00
|
|
|
{.warning[UnusedImport]: off.}
|