In the previous section, we saw how we needed to enable the Layers plugin before we could run our layer tests. nose2 comes with a large set of plugins that enhance or extend its behavior. In fact, support for all the parameterized tests and generated tests that we saw earlier are actually implemented as nose2 plugins. The difference is that parameterized and generated tests are loaded by default, so we didn't need to explicitly enable them.
In this section, we'll take a look at some of the popular plugins. Keep in mind that there are many more plugins that we aren't going to discuss here.
If we have not integrated doctests into the unittest framework as described in the previous chapter, then we can configure nose2 to autodiscover and run doctests.
Activate the plugin with the following command:
nose2 --plugin nose2.plugins.doctests --with-doctest
This will autodiscover and run doctests along with all the other kinds of tests.