Skip to content
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

Make your own test case #13

Open
fulldecent opened this issue Jul 28, 2018 · 0 comments
Open

Make your own test case #13

fulldecent opened this issue Jul 28, 2018 · 0 comments

Comments

@fulldecent
Copy link

Use an input box to have the user paste in solidity code. Provide a few example snippets.

Sample web page:


Custom test case (advanced)

Input your own Solidity code to create a custom test case which can be run against any smart contract. Read about how we run Solidity code against blockchain networks without committing transactions to the network here (LINK TO WILL+TADEJ PAPER).

[ BUTTON: Load example erc165 test case ]
[ BUTTON: Load hello world test case ]
[ BUTTON: Load erc20 symbol name test case ]

[ LARGE TEXT BOX WITH LAST TEST CASE PREFILLED ]

[ RUN TEST CASE ]


Note: the test cases are going to have an `import "http:... /oxcertvalidator/testcase.sol" at the top.

After clicking submit: use soljs to compile and run the code like f-- magic. Then send the byte code to REST backend to run the test case.


Test case results:

Test case ran with a gas limit of XXXX. Total gas consumed XXX. Test did NOT revert.

If your test case is awesome, open an issue HERE and we can add it into the validator!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant