Implement unit test #47

Merged
stanislav.hejny merged 11 commits from unittest-coverage-85 into develop 2025-05-19 14:30:16 +00:00

11 Commits

Author SHA1 Message Date
Stanislav Hejny 3e0f769837 feat #16 - update version so the code can be published as artifact
Unit test coverage / pytest (push) Successful in 1m19s
Unit test coverage / pytest (pull_request) Successful in 1m17s
2025-05-19 15:27:37 +01:00
hurui200320 2e12d5ab57 test(General): finished unit test, coverage 88%
Unit test coverage / pytest (push) Successful in 1m8s
Unit test coverage / pytest (pull_request) Successful in 1m6s
ISSUES CLOSED: clevermicro/amq-adapter-python#16
2025-05-16 18:16:04 +08:00
hurui200320 aec53f5b34 test(General): implement unit test for data parser, rabbitmq client and other python files
Unit test coverage / pytest (push) Failing after 1m7s
This commit bump the coverage rate to 77%
2025-05-15 17:06:05 +08:00
Stanislav Hejny 33431e87fc issue #16 - add model tests, cursor config file and update the tracing.py to setup Jaeger & Prometheus exporters
Unit test coverage / pytest (push) Failing after 1m4s
2025-05-15 00:47:12 +01:00
hurui200320 883ea3400f test(General): fix existing unit tests for cleverthis service adapter
Unit test coverage / pytest (push) Failing after 1m10s
Should bump coverage rate to 62%
2025-05-14 16:16:10 +08:00
hurui200320 85297fa4cf test(General): finished unit test for file handler, fixed unit test for backpressure handler
Unit test coverage / pytest (push) Failing after 1m4s
2025-05-14 15:08:32 +08:00
Stanislav Hejny 53dce69e8f issue #16 - fix the pytest hanging after test main thread exits
Unit test coverage / pytest (push) Failing after 1m4s
2025-05-14 01:01:35 +01:00
hurui200320 98fc52fc26 Partially finished the unit test for file handler
Unit test coverage / pytest (push) Failing after 3h4m2s
2025-05-13 18:00:01 +08:00
hurui200320 44b6a8c3f1 test(General): implement unit test for serializer 2025-05-13 15:14:50 +08:00
hurui200320 45357c42a8 test(General): write test for pydantic serializer, fixed serialization bug
Unit test coverage / pytest (push) Failing after 3h11m8s
This commit write unit tests for pydantic serializer using cursor ai, and found an issue related to serialization. Originally, the code uses comma to concat string, but map and list also has comma inside. During the deserialization, split using comma will break map and list, leaving `{` with first kv pair for map, and `[` with first element with list. Instead of using concat with comma as separator, I use json to encode the object dict.
2025-05-12 16:42:34 +08:00
Stanislav Hejny bc98351493 feat \#16 - add unittest for backpressure_handler and logging_utils
Unit test coverage / pytest (push) Failing after 3h11m10s
2025-05-12 01:06:39 +01:00