Restructure Journey Tests #1597
Labels
complexity
complexity
github_actions
Pull requests that update GitHub Actions code
large
large
tech-debt
Testing
Testing
Describe what should be investigated or refactored
The tests in
journey/
are one of the slower aspects of our CI/CD pipeline. They are also interwoven and are not isolated/independent from each other. In general, we see thejourney/
directory and think "here be dragons."We should improve our Journey tests by doing the following smaller, well-scoped actions:
Entrypoint Changes
*.test.ts
)peprInit
.peprFormat
.peprBuild
.peprDeploy
.peprDev
.entrypoint.test.ts
and other test filesGeneral Changes
TEST_MODE
environment variable.pepr-init.ts
expect()
statements in tests to assert on some conditionexecSync()
commandspepr-format.ts
expect()
statements in tests to assert on some conditionexecSync()
commandspepr-build.ts
execSync()
commandsvalidate*()
functionsnpx pepr build
pepr-deploy.ts
waitForConfigMap()
cleanupSamples()
)spawnSync()
andexecSync()
callstestMutate
,testValidate
, andtestStore
describe()
blockpepr-dev.ts
success
andexpectedLines
)done()
afterAll()
by simply killing process and avoiding manual teardownCI/CD Changes
Additional context
Related issues: #1140, #1106, #978
Related branches: 1140-journey-refactor
The text was updated successfully, but these errors were encountered: