question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

truffle test doesn't work in demo

See original GitHub issue

Same error as here: https://github.com/ConsenSys/dao-wars/issues/1

Edit: to be clear, by “demo” I mean what’s created by truffle init.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tcoultercommented, Nov 13, 2015

EtherPudding is a contract abstraction on top of web3’s contract abstraction. The readme should do a pretty good job of explaining it: https://github.com/ConsenSys/ether-pudding . In case it doesn’t, the main features are 1) Promises, for clean code, and 2) ability to keep your app’s control flow in sync with the network (i.e., you don’t get your callback until your transaction is mined). There are a few other features, but they’re tangential.

TestRPC and Ethersim are two solutions to the same problem (both of which I have contributed heavily). That problem is productivity: waiting 17 seconds per transaction to see if your code works is a productivity killer. So both of these projects run an Ethereum VM without mining or network and process transactions immediately, simulating the real effects of the blockchain, but much faster. TestRPC is written in Python, Ethersim in JS.

I’m switching my efforts to Ethersim as the JS solution seems to be more stable (at least, my command of JS is greater). They’re nearly feature equivalent, though Ethersim lags behind a few RPC calls. I hope to fill those out soon.

0reactions
taoeffectcommented, Nov 14, 2015

FYI, just verified that this works on TestRPC aka eth-testrpc.

So, since this is not an intrinsic Truffle issue I’m closing this, and I opened a corresponding EtherSim issue: https://github.com/iurimatias/EtherSim/issues/6

Read more comments on GitHub >

github_iconTop Results From Across the Web

solidity - Test not working in truffle - Ethereum Stack Exchange
Got his error when run truffle test
Read more >
is not contract address during truffle test - Stack Overflow
I made 2 small changes in your contract: I added public keyword. It's good practice to always define the visibility of your function....
Read more >
Truffle quickstart - Truffle Suite
Open the test/metacoin.js file. This is a test file written in JavaScript which performs a similar function to the Solidity test above. The...
Read more >
Test Driven Solidity with Truffle | by Muhammad Yahya - Medium
This test is specified at line 23. If we run the $ truffle test command again, we see that the test is passed....
Read more >
Truffle Tutorial for Beginners | Compile, Test & Deploy Smart ...
If playback doesn't begin shortly, try restarting your device. Your browser can't play this ... SafetyHow YouTube worksTest new features.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found