• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eclipse-aascw / aas-core-codegen / 40140041326
90%

Build:
DEFAULT BRANCH: main
Ran 24 Oct 2026 10:56PM UTC
Jobs 3
Files 309
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Oct 2026 10:47PM UTC coverage: 90.211% (+0.01%) from 90.201%
40140041326

push

github

web-flow
Trace JSON values in tests of all targets (#865)

We type-check the generated Python tests with mypy 2.4.0 as the SDKs do,
and found that they pass a JSON-able value to ``tests.common.trace``,
which accepts none. We now trace these values as their JSON text:

    def trace_json(that: our_types.JsonValue) -> str:
        return json.dumps(that, sort_keys=True)

The ``over_X_or_empty`` and ``X_or_default`` tests call it on the JSON
items at any depth. The ``trace`` now accepts nested sequences through
a recursive alias ``Traceable``, which mypy 2.4.0 needs for the nested
collections. The live test and the fast check run mypy on
``dev/tests``, too.

We extend the meta-model ``json_types_in_collections`` with an optional
list of JSON objects and an ``optional_object_or_default`` method. This
uncovered the same gap in the tests of the other targets, which we fix
as well: C++ dumps the ``nlohmann::json``, C# and Java convert a JSON
node in ``CommonJson``, Go stringifies maps, floats and slice items, and
TypeScript stringifies the JSON with the keys sorted.

The TypeScript serialization of a ``List[JSONObject]`` did not compile,
since ``jsonValueToJsonable`` returned a ``JsonValue``. We keep
``Array<JsonObject>`` and tell the compiler with overloads that the copy
keeps the shape:

    function jsonValueToJsonable(that: OurTypes.JsonObject): JsonObject;

38 of 43 new or added lines in 5 files covered. (88.37%)

46373 of 51405 relevant lines covered (90.21%)

2.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
87.5
-12.5% aas_core_codegen/python/tests/_generate_common.py
Jobs
ID Job ID Ran Files Coverage
1 3.12 - 40140041326.1 24 Oct 2026 11:00PM UTC 309
90.21
GitHub Action Run
2 3.10 - 40140041326.2 24 Oct 2026 11:00PM UTC 309
90.21
GitHub Action Run
3 3.11 - 40140041326.3 24 Oct 2026 11:00PM UTC 309
90.21
GitHub Action Run
Source Files on build 40140041326
  • Tree
  • List 309
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 393501fd on github
  • Prev Build on main (#40136757312)
  • Next Build on main (#40142184494)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc