Skip to content
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

What would be the cause if my 'truffle test' gives nothing in return? #5

Open
heraclixus opened this issue Aug 11, 2019 · 2 comments
Open

Comments

@heraclixus
Copy link

So npm install and truffle compile are fine, but with truffle test, the command line just gives me nothing:
Screen Shot 2019-08-11 at 3 29 31 PM

@Mayersteen
Copy link

Even though this question dates back to August 2019 perhaps my response is helpful to someone.

For me this was usually related to having a wrong port configured in my truffle.js / truffle-config.js file. The default might be port 8545 (which is the default for the ganache-cli) but if you are using the ganache-gui, you need to change it to e.g. 7545 (which is the default for the ganache-gui).

An example is illustrated in the truffle documentation, where you can also find further information on the config file.

module.exports = {
  networks: {
    development: {
      host: "127.0.0.1",
      port: 8545,
      network_id: "*" // Match any network id
    }
  }
};

@techbubble
Copy link

Inspired from teaching this project and the questions I got, I started a company to make it easy for developers to get started. Check out DappStarter which incorporates much of what went into building the FlightSurety project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants