Really, the only thing preventing one from doing this is a lack of
documentation. Upon checking out the salt source code, a custom module
could easily be placed into
salt/tests/integration/files/file/base/_modules and then unit tests
could be written and placed in salt/tests/integration/modules.
For example, to write and run unit tests for a module named
my_custom_module, place the module in
salt/tests/integration/files/file/base/_modules/my_custom_module.py
And place your unit test in:
salt/tests/integration/modules/my_custom_module_test.py (Note the
_test in the filename, which is required.)
Then you could run unit tests using Salt's own test suite as follows:
python salt/tests/runtests.py -n unit.modules.my_custom_module_test
The same scheme could be used to create and write integration tests
for custom modules.
Let me know if you have questions.
-mp
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
salt-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.