-
Notifications
You must be signed in to change notification settings - Fork 2.3k
How to debug the "truffle test transactions" #1050
Comments
@carbonnetwork Are you using VSCode? This error happens quite a bit with that IDE - there's discussion and (possibly) a workaround discussed at #756. |
@cgewecke My OS is macOs high Sierra, and I used sublime text and terminal. |
@carbonnetwork Can you show the file that's triggering this so I can try to reproduce? |
@cgewecke Yes. The No. 2 problem above have solved, but "import problem" not. The codes:
$ truffle compile
$ truffle debug 0x8b62c6156a88196128cca9a23c9f4aa648fb7f1b3f601327c650568225f11b67
|
@carbonnetwork I think the issue is this:
Truffle expects Solidity tests to be in the outer |
@cgewecke Thanks. It worked, but the test contract throw exception:
But it may not be the same issue with #721 [https://github.com//issues/721].
|
If you only run single test it should work. Javascript tests can be skipped by prefixing the
I think the reason the tx isn't found is that Truffle resets the blockchain between each test file in order to keep a 'clean-room' environment for individual suites. This means only the transactions made in the last test file to run are still available in the blockchain db. |
@cgewecke Thank you! The problem was solved. But got another problem that is same with https://ethereum.stackexchange.com/questions/50423/truffle-debugger-throws-error. And much like #39 |
@carbonnetwork - Thanks, I've edited your issue title to narrow the problem a bit. . . |
@cgewecke OK,thanks |
Thank you for raising this issue! It has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you would like to keep this issue open, please respond with information about the current state of this problem. |
There has been no new activity on this issue since it was marked as stale 7 days ago, so it is being automatically closed. If you'd like help with this or a different problem, please open a new issue. Thanks! |
My test contract imported
truffle/Assert.sol
&truffle/DeployedAddresses.sol
."Error: Could not find truffle/Assert.sol from any sources;
.truffle test
run it, it can be compiled well, but throw exception:Error: VM Exception while processing transaction: revert
.truffle debug <transaction id>
, and it gave error message"Error: Could not find truffle/Assert.sol from any sources;
too.What can I do for debug the test transaction.
The text was updated successfully, but these errors were encountered: