status-im / status-go

The Status module that consumes go-ethereum
https://status.im
Mozilla Public License 2.0
727 stars 249 forks source link

test_: profile tests #6055

Closed churik closed 2 weeks ago

churik commented 2 weeks ago

First iteration on profile tests that can be extracted from requests.log. So far there is no obvious option to check that the settings is saved (see the question here)

Example of test case:

INFO     root:status_backend.py:56 Sending POST request to url http://0.0.0.0:3334/statusgo/CallRPC with data: {
    "id": "4657",
    "jsonrpc": "2.0",
    "method": "wakuext_setBio",
    "params": [
        "some valid bio"
    ]
}
INFO     root:status_backend.py:59 Got response: {
    "id": "4657",
    "jsonrpc": "2.0",
    "result": null
}

In future will be extended with different input params.

Notes: no schema is returned from statusd as well, so this response means that this change is successful.

All questions / future steps that I bumped into I documented here

status-im-auto commented 2 weeks ago

Jenkins Builds

:grey_question: Commit :hash: Finished (UTC) Duration Platform Result
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 13:39:06 ~3 min macos :package:zip
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 13:39:54 ~4 min windows :package:zip
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 13:39:58 ~4 min linux :package:zip
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 13:40:11 ~4 min tests-rpc :page_facing_up:log
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 13:40:19 ~4 min ios :package:zip
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 13:40:47 ~5 min macos :package:zip
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 13:41:20 ~6 min android :package:aar
:heavy_check_mark: 3b4b65c2 #1 2024-11-06 14:10:56 ~35 min tests :page_facing_up:log
codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.84%. Comparing base (b329b15) to head (3b4b65c). Report is 1 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #6055 +/- ## =========================================== - Coverage 60.88% 60.84% -0.05% =========================================== Files 811 811 Lines 108894 108894 =========================================== - Hits 66303 66256 -47 - Misses 34841 34869 +28 - Partials 7750 7769 +19 ``` | [Flag](https://app.codecov.io/gh/status-im/status-go/pull/6055/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im) | Coverage Δ | | |---|---|---| | [functional](https://app.codecov.io/gh/status-im/status-go/pull/6055/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im) | `13.09% <ø> (+0.01%)` | :arrow_up: | | [unit](https://app.codecov.io/gh/status-im/status-go/pull/6055/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im) | `60.20% <ø> (-0.05%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im#carryforward-flags-in-the-pull-request-comment) to find out more. [see 34 files with indirect coverage changes](https://app.codecov.io/gh/status-im/status-go/pull/6055/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=status-im)