-
Notifications
You must be signed in to change notification settings - Fork 790
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
Improve VM browser compatibilty / test coverage #465
Comments
It would also be nice to document and test all ethereumjs-vm methods that remix uses. For example, a recent change to |
@cdetrio |
Some of the issues (will update list):
|
For This will likely cause similar problems in other libraries as well. |
Did a test run for the failing |
Re-checked, |
It looks like there are two slow tests in
As @s1na commented:
I couldn't find a timeout that works on my machine to successfully complete the tests. Commenting them out finishes the test suite without any errors. My proposed solution is to add this code to the beginning of both those tests: if (window.__karma__) {
st.skip('skip slow test when running in karma');
return st.end();
} Let me know if you'd like for me to open a PR with the above. |
That’s great, @ryanio! Can you ensure it works with a low amount of accounts, like 800? |
Doing that of course will generate a different state root hash, might not be worth the trouble. |
I think skipping is easiest, might not be worth the effort, not sure. @ryanio eventually you can do some sort experiment in it but otherwise implement your solution? |
With the merge of #461 there is now browser testing done on the VM to improve VM browser compatibility and avoid introducing bugs like #457.
Currently browser tests are not run on all API test files and many files are excluded since tests were not passing, see karma.conf.js
exclude
directive.Excluded tests should be integrated and the underlying issues addressed. Initial experiments indicated that there probably will be some deeper investigation needed and it's probably most practical to address step-by-step on separate PRs. It is also likely that these fixes will spawn over different libraries and not only target the VM, so this should be addressed in a holistic way with PRs where necessary.
The following is a list of the test files which need to be activated:
./tests/api/state/stateManager.js
./tests/api/state/storageReader.js
./tests/api/index.js
./tests/api/runBlock.js'
./tests/api/runBlockchain.js
The text was updated successfully, but these errors were encountered: