mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-02 13:33:10 +00:00
23 lines
664 B
Nim
23 lines
664 B
Nim
import std/os
|
|
import std/strutils
|
|
import ./imports
|
|
|
|
## 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" / "1_minute", "testpurchasing"
|
|
)
|
|
importTests(
|
|
currentSourcePath().parentDir() / "integration" / "5_minutes", "testsales"
|
|
)
|
|
|
|
{.warning[UnusedImport]: off.}
|