Repository navigation
Make sure test file names map source files names - #7338
Conversation
i think unit tests amd integration tests are ... benchmarks are also usually only exec by maintainers if related stuff is changed. they are no good fit for regular ci runs, if we wana add it to ci we must have a way to garantee some stable enfironment where runtimes stay the same and compare to the past ... ... still to track tjat data and preserfe history would be good to catch regressions, trends etc ... |
|
I allowed _bench_test.go, and what about the helper files? |
😆 no idea |
|
Anyone else has an idea @woodpecker-ci/maintainers ? The files contain helper functions only used in tests. |
We could establish a convention (similar to |
|
also how to we do with #7322 (comment) (blackbox tests) mainly needed if you alter stuff ... |
|
I allowed utils_test.go (also without matching file) and also linux_test.go as suffix. One note: If we now have a source file About blackbox tests: I don't really see a reason to not run it as part of the suite… Even if it takes some time. I would like to avoid having hundreds of exceptions of the naming scheme. But it's not a big think for me to exclude it from the scheme as well. |
This reverts commit 94ca134.
|
Surge PR preview deployment was removed |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7338 +/- ##
==========================================
- Coverage 64.63% 64.62% -0.01%
==========================================
Files 448 448
Lines 22093 22093
==========================================
- Hits 14279 14278 -1
- Misses 7814 7815 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@woodpecker-ci/maintainers is something missing here? It's a pain to always resolve the conflicts... |
|
no all good :) |
main renamed rpc_integration_test.go to rpc_test.go (woodpecker-ci#7338), so the merge of main dropped the PR changes to it. Bring them back: - drop StepFinished mocks from Update tests - use service_log.StreamDelayAllowed - add TestRPCLogFinalizeOverlap Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BXsZr17NA4Xtet1CJpW4aM
also add a test step checking this.
This fails right because of the files
First are test utils (so not tests themself), last one are benchmarks. How should those be called?