Open hpidcock opened 5 months ago
Just for the record, @hpidcock and I talked briefly about this, and I'm quite keen to try using go test
with a build tag for this, for example go test -tags integration ./internals/testintegration
. This will mean we can run some nice high-level tests of pebble run
without installing any additional tooling.
Relatedly, we should figure out a better way to mark and run "root tests" -- or maybe these just become integration tests instead. https://github.com/canonical/pebble/blob/18c93cbc280de20c9e21d323fe3a8bbb340777a2/.github/workflows/tests.yml#L35-L52
Currently
pebble run
has no unit tests or integration tests. Considering this is the main entry point, it would be valuable to add integration testing here.There is a few possible ways we could achieve this:
spread
to define the integration tests.The integration tests should cover all the expected use cases of pebble at the moment.