-
Notifications
You must be signed in to change notification settings - Fork 3
Test framework #32
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
base: main
Are you sure you want to change the base?
Test framework #32
Conversation
* added sfield constants * added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples. * added Locator string * refactored main and vm * some basic tests done, more tests are needed
* Add trace host function * Update build to support WASM panic handler * Add supporting layer for errors * Update `xrpl_std_example` to emit text and numeric data * Add helper build scripts
…dd-trace # Conflicts: # projects/xrpl_std_example/src/lib.rs # wasm-host/src/host_functions.rs # wasm-host/src/main.rs # wasm-host/src/vm.rs # xrpl-std/src/lib.rs
* added sfield constants * added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples. * added Locator string * refactored main and vm * some basic tests done, more tests are needed
* added sfield constants * added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples. * added Locator string * refactored main and vm * some basic tests done, more tests are needed
example command: craft build --project host_functions_test --release --opt-level z
You can now build the host_functions_test like this:
|
e.g. run test with: craft test --project host_functions_test --test-case host_functions_test
This is getting big. I'd like to merge it into I recommend using Merge commits so that we don't have to rebase commits which are present in multiple branches. |
Resolved merge conflicts MockData uses SField_To_Name for field name retrieval
* update to latest JS beta
Resolved conflicts Updated package.json to use xrpl version 4.3.0-smartescrow.3 and ripple-binary-codec version 2.4.0-smartescrow.2
When running tests, look for the following to see that the tests actually passed: WASM TRACE: SUCCESS: All host function tests passed! also, look to see: Result: true Here is an example test command: craft test --project host_functions_test --test-case success
Fix merge conflicts in `df/struct-types`
…work Resolve merge conflicts Consolidate decode function implementations
Any objection to getting |
No objection. Go for it! |
#37 has been merged. Looks like this branch needs to be updated/rebased. |
example of how to run test:
This builds on:
xrpl_std_example
#26