I want a dead-easy, well-documented way to set up CI testing for my plugins, running within a discourse instance.
Babble has a robust back-end test suite, which is cool, but ideally I’d like every push I make (and maybe some of the pushes Discourse makes?) to do the following:
- Pull in the latest Discourse (or tests-passed, probably)
- Install my plugin on it
- Run the plugin test suite from within the that environment, on Travis or CircleCI or whatever
This way I can at least guarantee that hitting all of my endpoints works as expected.
A next step could be allowing us to run JS specs from within our plugin as well. In an ideal world, we’d have e2e integration testing too (whatever the Ember flavour of protractor is; maybe it’s protractor?), which would allow me to further guarantee stuff like ‘the icon is showing up correctly’, ‘clicking on it does this thing’, etc, which would give me pretty high confidence that everything was okay given that those were passing.