hoodiehq-archive / hoodie-integration-test

⛔ deprecated
Apache License 2.0
3 stars 2 forks source link

Use `npm link` to test changed code #7

Closed boennemann closed 10 years ago

boennemann commented 10 years ago

In it's current state integration tests only run against the latest published version, which is kind of pointless.

If I correctly understand what npm link does, wouldn't it make sense to link the currently tested repository, so that the integration tests test actual changes?

@svnlto Did I miss something? Could you please elaborate on that, so I can implement this.

svnlto commented 10 years ago

If I understand your question correctly, the answer is yet. Checkout the branch you want to test again, npm link it and run your tests against it.

svnlto commented 10 years ago

We use npm link in these tests https://github.com/hoodiehq/hoodie-plugin-template/blob/master/Gruntfile.js#L91

boennemann commented 10 years ago

@svnlto Just FYI I had to change the command slighty: https://github.com/hoodiehq/grunt-release-hoodie/commit/cd8e088240ab82270806379062a8c8f4399bd937

svnlto commented 10 years ago

looking good, thanks for the heads up.