test(core): add unit tests for untested core modules #203
Open
clu
wants to merge 9 commits from
test/core-unit-tests into dev
pull from: test/core-unit-tests
merge into: :dev
:master
:test/core-unit-tests
:dev
:mail_queue
:experimental
:#170
Labels
Clear labels
bug
bugfix
cli
discussion
documentation
duplicate
help wanted
improvement
invalid
question
refactoring
release
story
tech-story
wontfix
Something is not working
Solution of a problem
Changes for command line interface
Something needs to be discussed
Indicates a need for improvements or additions to documentation
This issue or pull request already exists
Need some help
Improvement of a feature
Something is wrong
More information is needed
Code need some refactoring
Create a release
New feature
This won't be fixed
expense
low
1
expense
medium
2
expense
high
3
expense
very-high
4
priority
medium
1
priority
low
2
priority
high
3
priority
blocker
4
risk
low
1
risk
medium
2
risk
high
3
risk
fatal
4
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sh-edraft.de/cpl#203
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Zusammenfassung
cpl-core113 passed)Abgedeckte Module
abc/RegistryABCenvironment/Environment+EnvironmentEnumpipes/BoolPipepipes/IPAddressPipeproperty/classpropertytime/Cronutils/Cache(TTL, expiry, cleanup)utils/get_valueutils/JSONProcessorGefundener Bug
get_valueruft interncast()auf, gibt das Ergebnis aber nicht zurück — der Cast-Wert geht verloren und die Funktion returnedNone. Betroffen: String-zu-Typ-Konvertierungen (z.B."42"→int).Die betroffenen Tests sind mit
# Bug:kommentiert und dokumentieren das aktuelle (fehlerhafte) Verhalten.Test plan
python -m pytest test/core/lokal ausgeführt🤖 Generated with Claude Code
Zu wenig test Abdeckung.
Wieso wird z.B. configuration & environment nicht getestet?
@edraft Danke für das Review.
Environment+EnvironmentEnumsind bereits abgedeckt (13 Tests, siehe PR-Beschreibung).configurationfehlt noch — war bewusst ausgeklammert, da das Modul externe Dateizugriffe erfordert und ich zunächst die reinen Unit-Tests ohne Filesystem-Mocking priorisiert habe.Ich erweitere die Abdeckung auf
configurationund schaue, welche weiteren Module noch fehlen.Stimmt, die fehlen noch. Die Module erfordern spezifisches Setup (File-IO, Env-Variablen), deshalb separat. Füge ich in diesem PR hinzu oder separaten Folge-PR?
Guter Punkt. Ich ergänze Tests für
configurationundenvironment.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.