-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feat/adding_instrumentail_tests #1561
base: develop
Are you sure you want to change the base?
Conversation
d911388
to
8d9e55a
Compare
fix order add unique build remove unit tests fix run tests fix build tests remove example test which lead to error temp fix for build remove example instrumental tests adding debug lines fix debug fix path fix build type fix path build debug version fix path run on github action fix balances tests store results in separate repo fix artifacts path fix artifact version fix download path fix path fix path update secrets fix access remove unnecessary checkout update secrets update storing folder update deployment dir
216aa97
to
07b8301
Compare
8d9e55a
to
3d3f062
Compare
fix TestSigner
07b8301
to
03f2a0c
Compare
fix TestSigner
3d3f062
to
30b1f5f
Compare
def run(): | ||
os.system('adb wait-for-device') | ||
p = sp.Popen('adb shell am instrument -w -m -e notClass io.novafoundation.nova.balances.BalancesIntegrationTest -e package io.novafoundation.nova.debug io.novafoundation.nova.debug.test/io.qameta.allure.android.runners.AllureAndroidJUnitRunner', | ||
shell=True, stdout=sp.PIPE, stderr=sp.PIPE, stdin=sp.PIPE) | ||
return p.communicate() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I see we start only BalancesIntegrationTest. Is it correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we need to run balances test separately?
Is it because this test is moved to another directory?
@@ -50,13 +55,37 @@ class MoonbaseSendIntagrationTest { | |||
return EthereumKeypairFactory.generate(seed, junctions) | |||
} | |||
|
|||
private inner class TestSigner( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice solution I guess! But let's move inner class to the bottom of its parent
@@ -50,13 +55,37 @@ class MoonbaseSendIntagrationTest { | |||
return EthereumKeypairFactory.generate(seed, junctions) | |||
} | |||
|
|||
private inner class TestSigner( | |||
private val testPayload: (SignerPayloadExtrinsic) -> Unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I see we don't use testPayload from outside, so we can remove this redundant variable
private val testPayload: (SignerPayloadExtrinsic) -> Unit | ||
) : NovaSigner { | ||
|
||
val accountId = ByteArray(32) { 1 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems we don't use it but to be semantically correct let's provide accountId to the constructor from outside
[Still in process]
That PR adds instrumental tests to the PR's workflow