-
Notifications
You must be signed in to change notification settings - Fork 245
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
Testing improvements #514
Comments
@sohkai I have reviewed the items that you proposed to test and I have a few doubts:
|
Oops, yes! I've edited the issue :).
Not with the current set of executors, but this is something that may be possible if alternative executors get installed.
https://github.com/aragon/aragonOS/blob/dev/test/contracts/apps/app_acl.js is a generic test against the ACL's |
Thank you so much for your answer @sohkai. I have opened a PR #542 testing item 2
|
First of all, thanks for contributing to the tests! ❤️
I'd say we could add a completely new test file, The fact that all of the functions are public is indeed a bit of an abstraction leak we didn't catch onto, and they should've been marked
They are meant to be extended to test the permissions parameters themselves, but setting this up is a bit difficult without better tooling for ACL params, so I wouldn't worry about this one too much :). |
@sohkai Thanks for the recommendation. I have tested
in a new file covering the last remaining untested line. Let me know if this issue would require further actions or we should skip the auth modifiers explicit tests for now. |
According to coveralls, the only file with remaining lines/branches to be tested is SafeERC20.sol I see you discussing coverage decrease in #541, may it be that SafeERC20.sol should be ignored for coverage? |
Ahhh good point! It was once ignored in coverage due to solidity-coverage not supporting some assembly opcodes, but this has been fixed and we should increase the coverage of SafeERC20 too! |
@sohkai I have written extra test to cover
Do you have any clue on what might be the issue? |
@dapplion It's a bug coming from solidity-parser-antlr which should be fixed in solidity-coverage |
@cgewecke Bumped the version of |
A few items left from the test suite advisory:
AppProxyFactory. newAppProxyPinned(IKernel, bytes32)
EVMScriptRunner.protectState
modifierAPMRegistry
,Repo
,EVMScriptRegistry
)The text was updated successfully, but these errors were encountered: