Integration Test for RPC nodes
Pull reviewers stats
Stats of the last 30 days for alpha-wallet-android:
| User | Total reviews | Time to review | Total comments | |
|---|---|---|---|---|
| seabornlee π₯ |
16 ββββ |
3h 28m β |
12 ββββββ |
|
| JamesSmartCell π₯ |
14 ββββ |
18h 56m ββββ |
7 ββββ |
|
| justindg π₯ |
8 ββ |
20h 33m βββββ |
1 β |
Codecov Report
Patch coverage: 5.49% and project coverage change: -0.02 :warning:
Comparison is base (
bca67f6) 7.58% compared to head (99f6565) 7.56%.
:exclamation: Current head 99f6565 differs from pull request most recent head 7d93694. Consider uploading reports for the commit 7d93694 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## master #2984 +/- ##
===========================================
- Coverage 7.58% 7.56% -0.02%
Complexity 906 906
===========================================
Files 658 658
Lines 44857 44876 +19
Branches 4517 4524 +7
===========================================
- Hits 3402 3396 -6
- Misses 41165 41190 +25
Partials 290 290
| Impacted Files | Coverage Ξ | |
|---|---|---|
| app/src/main/java/com/alphawallet/app/C.java | 57.14% <ΓΈ> (ΓΈ) |
|
| ...ain/java/com/alphawallet/app/entity/EventSync.java | 0.00% <0.00%> (ΓΈ) |
|
| ...wallet/app/interact/FetchTransactionsInteract.java | 22.22% <0.00%> (-1.31%) |
:arrow_down: |
| ...hawallet/app/repository/TransactionRepository.java | 7.86% <0.00%> (-0.19%) |
:arrow_down: |
| ...n/java/com/alphawallet/app/service/GasService.java | 7.82% <0.00%> (+0.17%) |
:arrow_up: |
| ...ava/com/alphawallet/app/service/TickerService.java | 19.23% <ΓΈ> (+0.66%) |
:arrow_up: |
| ...m/alphawallet/app/service/TransactionsService.java | 3.82% <0.00%> (-0.05%) |
:arrow_down: |
| .../java/com/alphawallet/app/ui/ActivityFragment.java | 0.00% <0.00%> (ΓΈ) |
|
| ...com/alphawallet/app/ui/NFTAssetDetailActivity.java | 0.00% <0.00%> (ΓΈ) |
|
| ...ain/java/com/alphawallet/app/ui/TokenActivity.java | 0.00% <0.00%> (ΓΈ) |
|
| ... and 6 more |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Good start - can you also add to the test to verify that each network doesn't display a :( face. I am not sure the best way to do this; a good way could be to sense the "IC" value in the environment variables (I think it is "IC") and if sensed then if any network comes up with a :( switch on some text (or symbol) at the top of the page. The integration test would sense that text.
To do this correctly you'd also need to display some different text (or symbol) once all networks have completed their check.
This way you can timeout, complete if the 'all network success' symbol/text comes up and mark fail if the 'one network has failed' symbol/text becomes visible.
This symbol/text should only appear if the app senses that it is running an integration test. I think the "IC" symbol will appear in the environment vars if it is (check the script).
Do you mean "CI" value in environment variables?
Good start - can you also add to the test to verify that each network doesn't display a :( face. I am not sure the best way to do this; a good way could be to sense the "IC" value in the environment variables (I think it is "IC") and if sensed then if any network comes up with a :( switch on some text (or symbol) at the top of the page. The integration test would sense that text. To do this correctly you'd also need to display some different text (or symbol) once all networks have completed their check. This way you can timeout, complete if the 'all network success' symbol/text comes up and mark fail if the 'one network has failed' symbol/text becomes visible. This symbol/text should only appear if the app senses that it is running an integration test. I think the "IC" symbol will appear in the environment vars if it is (check the script).
Do you mean "CI" value in environment variables?
That's exactly what I mean :)
Hi @JamesSmartCell, the test is currently failing and Iβm unsure whether itβs due to issues with the test code or if some of the networks are not responding. Could you please verify the network status on the test device?
Hi @JamesSmartCell, the test is currently failing and Iβm unsure whether itβs due to issues with the test code or if some of the networks are not responding. Could you please verify the network status on the test device?
Yes! Artis has been switched off (we checked with the Artis team), so it needs to be removed. Then the test should work. I can see it failing instantly because Artis isn't responding.
Hi @JamesSmartCell, the test is currently failing and Iβm unsure whether itβs due to issues with the test code or if some of the networks are not responding. Could you please verify the network status on the test device?
Yes! Artis has been switched off (we checked with the Artis team), so it needs to be removed. Then the test should work. I can see it failing instantly because Artis isn't responding.
Hi @JamesSmartCell, the test is currently failing and Iβm unsure whether itβs due to issues with the test code or if some of the networks are not responding. Could you please verify the network status on the test device?
Hi @JamesSmartCell, the test is currently failing and Iβm unsure whether itβs due to issues with the test code or if some of the networks are not responding. Could you please verify the network status on the test device?
Hi @JamesSmartCell, the test is currently failing and Iβm unsure whether itβs due to issues with the test code or if some of the networks are not responding. Could you please verify the network status on the test device?
I removed the ARTIS chain
Now it's giving this error:
com.alphawallet.app.RPCNodesTest > should_select_network[Pixel - 10] FAILED
androidx.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: 'not (view is an instance of android.view.ViewGroup and has descendant matching (view.getId() is <2131362276> and has background resource with id 2131230998))' doesn't match the selected view.
Expected: not (view is an instance of android.view.ViewGroup and has descendant matching (view.getId() is <2131362276/io.stormbird.wallet:id/image_status> and has background resource with id
It might be an idea to wait for 20 seconds or so for all the nodes to return the ping; initially there may not be any status icons visible.