Creating and running tests for a snapcraft plugin

Leo Arias leo.arias at
Thu Mar 2 02:01:01 UTC 2017


Thanks for working on a new plugin.

On Thu, Feb 23, 2017 at 5:13 PM, Joseph Rushton Wakeling
<joseph.wakeling at> wrote:
> Is there a simple way to run the tests for a single plugin, rather than the
> whole body of tests?  The snapcraft doesn't offer any advice on
> this point.

To run all the tests related to python, for example, you can do
something like this:

./ unit *python*
./ integration *python*

That filter is by file name. You can do fancier things with python's discovery:

pura vida.

More information about the Snapcraft mailing list