Mark, Nearly all of the module unit tests (and all of the integration tests) currently reside in the main Ansible repository in the test/units and test/integration directories. These tests are run as part of our CI process on Shippable. You'll need to submit a separate PR for the unit tests, which we can merge after your module has been merged. This process will get easier once we've combined the repositories, as you'll be able to submit your tests along with your module in a single PR.
To answer your other questions: - We're still using nose for our unit tests. - Requirements for unit tests can be added to test/utils/shippable/sanity-requirements.txt and will be picked up by Shippable when running tests via the test/utils/shippable/sanity.sh script. - We've mostly migrated away from Travis to Shippable, so we shouldn't be adding anything new to .travis.yml. If you add your unit tests to the existing ones, you shouldn't need to make any other changes. - Matt Clay On Thursday, September 8, 2016 at 11:38:28 AM UTC-7, [email protected] wrote: > > Our team is in the process of submitting a module with unit tests to > https://github.com/ansible/ansible-modules-extras and we have a few > questions about how to get it to run with the rest of the projects build > steps in Travis and whether the community has a preferred way of getting > these things done. > > - > > Is nose still the preferred testing library to use or is there a move > to py.test or some other lib? > - > > Can we add a test-requirements.txt to the root dir so that it's easier > to maintain the required libs for unit testing? > - > > Can we add an item under the script section of .travis.yml that > executes our unit tests? > > Hoping for some clarification/guidance from the team. Thank you! > -- You received this message because you are subscribed to the Google Groups "Ansible Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
