Comments (11)
Isn't better to test directly with go?
from prysm.
I dont think there is any framework for unit testing solidity in go
from prysm.
Calling functions in the SMC and checking the outcome can be done in go.
from prysm.
We could do the solidity testing using truffle then run a separate set of tests in go using the bindings to test functions in the SMC
from prysm.
Testing from Go would be a more end to end test. We would need to simulate or run an actual chain to test the contract via Go. We could/should do both but we could really use some specific unit tests in solidity.
from prysm.
We can mock it, did some in #21
I don't see any benefit from testing within truffle
from prysm.
Discussed in gitter. Truffle provides a test runner and some assertion libraries, but introduces new development dependencies. Given that we already can run tests and use Go's standard testing library, we should continue to write tests in go for purposes of unit testing the validator management contact.
from prysm.
@rauljordan Great to meet you at ETHDenver - Vivek from Gitcoin here. Would it be helpful to bounty this to our dev community? Is there another issue which is higher priority at this time + fits the 'good first issue' mold for someone wanting to come contribute? Great work here so far!
from prysm.
Can this be closed? We are testing using the go bindings and I think that is good enough for our purposes.
from prysm.
We are already doing this under sharding_manager_tests.go
from prysm.
from prysm.
Related Issues (20)
- Support basic auth in beacon.Client [regression] HOT 1
- Devnet: logs of committeeIndices are all zeros but pubkeys are different to each other. HOT 1
- How could I operate "partial (earnings) withdrawals" if my "withdrawal_credentials" begins wiith "01" HOT 1
- ERROR filesystem: Unable to prune directory directory=0x123 error=slot could not be read from blob file 0.ssz: EOF HOT 7
- ERROR execution: Could not connect to execution endpoint error=403 Forbidden: invalid host specified: 403 Forbidden: invalid host specified HOT 1
- The progress of “Syncing: state download in progress” will not change for a long time
- Add a flag `--delay-sync` that delays syncing by a specific number of blocks HOT 9
- Beacon node stops syncing because >64998 subdirectories in blobs folder HOT 1
- Allow Importing of Historical Blobs HOT 11
- ERROR execution: Could not connect to execution client endpoint error=wanted chain ID 11155111, got 5: wanted chain ID 11155111, got 5
- Could not get sync aggregate rewards HOT 1
- Devnet: transactions on 2nd execution client will never be validated.
- The given withdrawal credentials is already in ETH1_ADDRESS_WITHDRAWAL_PREFIX form. Have you already set the EL (eth1) withdrawal addresss HOT 1
- Contradictory logs when syncing
- Reports of Windows users losing peers #13431 HOT 6
- are the fields in chain_reorg event response reversed?
- Google Container Registry Shutdown HOT 4
- Incompatible with k8s.io/[email protected]+ HOT 2
- Out of memory (OOM) - Prysm killed HOT 5
- Prysm Killed - Out of Memory HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prysm.