Skip to content

Commit 0626773

Browse files
committed
#127 docs: add WASM coverage limitations warning
- Added warning section in README explaining coverage constraints - Updated codecov.yml to exclude WASM-only files - Fixed lifetime issue in tests/init_sdk.rs - Linked to issue #127 for technical details - Created issue #128 documenting full investigation
1 parent a194a2a commit 0626773

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323

2424
`telegram-webapp-sdk` provides a type-safe and ergonomic wrapper around the [Telegram Web Apps](https://core.telegram.org/bots/webapps) JavaScript API.
2525

26+
> **⚠️ WARNING: Coverage Limitations**
27+
>
28+
> This project is primarily WASM-only code. Current Rust tooling does not support coverage measurement for wasm32 targets:
29+
> - `cargo-llvm-cov` only supports native platforms (x86_64)
30+
> - `wasm-bindgen-test` coverage support is experimental and requires complex setup
31+
> - `cargo-tarpaulin` does not support wasm32
32+
>
33+
> Coverage reports show only native-testable code. WASM-specific modules (leptos, yew, api/*, webapp, logger) have integration tests but are not included in coverage metrics.
34+
>
35+
> For technical details, see [issue #127](https://github.com/RAprogramm/telegram-webapp-sdk/issues/127).
36+
2637
<details>
2738
<summary>Coverage Graphs</summary>
2839

codecov.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ ignore:
2424
- "tests/**/*"
2525
- "target/**/*"
2626
- ".github/**/*"
27+
- "src/leptos.rs"
28+
- "src/leptos/**/*"
29+
- "src/yew.rs"
30+
- "src/yew/**/*"
31+
- "src/api/**/*"
32+
- "src/webapp.rs"
33+
- "src/logger.rs"
34+
- "src/pages.rs"
35+
- "src/router.rs"
2736

2837
github_checks:
2938
annotations: true

0 commit comments

Comments
 (0)