<div dir="ltr">Hi Folks,<div><br></div><div>There seems to be a general push in the direction of having more mocking in unit tests. Obviously this is generally a good thing but there is still value in having integration tests that test a number of packages together. That's the subject of this mail - I'd like to start discussing how we want to do this. Some ideas to get the ball rolling:</div><div><br></div><div>Having integration tests spread about the package and having environment variables that switch on/ off them being run</div><div><br></div><div>$ JUJU_INTEGRATION go test ./...</div><div><br></div><div>We could make use of build tags:</div><div><br></div><div>$ go test -tags integration ./...</div><div><br></div><div>We could put all the integration tests in a single package:</div><div><br></div><div>$ go test <a href="http://github.com/juju/juju/integrationtests/.">github.com/juju/juju/integrationtests/.</a>..</div><div><br></div><div><br></div><div>Thoughts?</div><div><br></div><div>Matty</div></div>