-
Notifications
You must be signed in to change notification settings - Fork 956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integrate test code coverage #71
Comments
cargo llvm-cov works with our codebase, we could use that. It can export the coverage in lcov format which can then be used with IDE plugins like like Coverage Gutters for VS Code, or uploaded to a service like codecov.io. Proof of concept - https://app.codecov.io/gh/james-chf/namada-fork/tree/james-chf%2Fcoveralls is the coverage for cargo llvm-cov nextest \
--lcov --output-path .hack/lcov.info --features namada/testing -E "not test(e2e)" |
@james-chf @juped can we integrate automatic coverage? |
I see we already run coverage in CI and publish it as an artifact - namada/.github/workflows/build-and-test-bridge.yml Lines 225 to 235 in 076e016
We could probably upload the coverage file as well to a service like https://codecov.io or https://coveralls.io, to get a nice UI for browsing code coverage (there is also some GitHub integrations we could look at e.g. bots that comment on PRs w.r.t. how they increase (or decrease) test coverage) |
Closed by #2148 |
* Begin setting up KeyRing & accounts storage * Adding a simple typed state class to keyring * Address helper to obtain ImplicitAddress, cargo update * Continue hooking up KeyRing to services * Fix broken imports, confirm message works in popup * Adding msg type for fetch generated mnemonic, update tests * Beginning components package; get styled-components with theme working * Disable devtool sourcemapping, add plugin for extension reloading (all browsers) * Properly include svg assets, port additional components into shared package * Fix issue on reloader plugin * fix module resolution, clean up imports * Remove unnecessary assignment * Consolidate types from Keplr into our own * Validate mnemonic phrase before storing, better error handling in wasm * Minor clean up, better type State class so as not to instantiate directly * Adding mnemonic/password creation screens, added README for types * Split set-up flow into new tab for initial account * Begin wiring up account derivation in service, generate implicit address to store and return * Add account derivation to completion process, load and display accounts * Better error-handling, add user feedback on account creation * Adding AccountListing components * Clean up configs, layout, fixed bug in key storage * KeyRing state is no longer duplicated, storage is only source of truth * Add icon for copy to clipboard, additional styling, update styled config * description -> alias to match cli, clean up * Adding UI for adding a new derived account with basic validation * Fix bug where alias is not being saved * Add "alias" as a field during setup * Updating for consistency, rough pass at styling derivation form * Move path items to number, validate inputs, set primes appropriately * Remove unnecessary folders, directly link build to App and Setup * Minor changes per PR feedback * Linting, final bit of PR feedback * Commiting artifacts for legacy @anoma/wasm package, remove from build * Fix e2e tests (don't run wasm:build - it's unnecessary) * Disable unit test workflow on PR push (until we have updated wasm) * Disable reporting on unit tests for now (until building against latest Namada) * Disable unit test reporting for now
this can run in the CI
The text was updated successfully, but these errors were encountered: