diff options
| author | Eric Lin <anselor@gmail.com> | 2020-07-16 17:29:11 -0400 |
|---|---|---|
| committer | anselor <anselor@gmail.com> | 2020-07-21 16:59:24 -0400 |
| commit | 0b64604eb9a370267aaca2a045378a2db5eaebcb (patch) | |
| tree | eb2934e984f1f281a050c21a34d1326b961552b0 /noxfile.py | |
| parent | 2df28cbc989c4f43cedd5db0fd5abd1426509567 (diff) | |
| download | cmd2-git-0b64604eb9a370267aaca2a045378a2db5eaebcb.tar.gz | |
Added type annotations for fields in cmd2.Cmd.
Cleaned up docstring in external test plugin
Updated some initialization to match new approach for version info discovery.
Tagged some IDE-only lines as no-cover
Adds plugin coverage reporting.
Diffstat (limited to 'noxfile.py')
| -rw-r--r-- | noxfile.py | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -3,7 +3,10 @@ import nox @nox.session(python=['3.7']) def docs(session): - session.install('sphinx', 'sphinx-rtd-theme', '.') + session.install('sphinx', + 'sphinx-rtd-theme', + '.', + ) session.chdir('docs') tmpdir = session.create_tmp() @@ -12,16 +15,25 @@ def docs(session): @nox.session(python=['3.5', '3.6', '3.7', '3.8', '3.9']) -@nox.parametrize('plugin', [None, 'ext_test', 'template']) +@nox.parametrize('plugin', [None, + 'ext_test', + 'template', + 'coverage']) def tests(session, plugin): if plugin is None: session.install('invoke', './[test]') session.run('invoke', 'pytest', '--junit', '--no-pty') + elif plugin == 'coverage': + session.install('invoke', 'codecov', 'coverage') + session.run('codecov') else: session.install('invoke', '.') # cd into test directory to run other unit test session.install('plugins/{}[test]'.format(plugin)) - session.run('invoke', 'plugin.{}.pytest'.format(plugin.replace('_', '-')), '--junit', '--no-pty') - - session.run('codecov') + session.run('invoke', + 'plugin.{}.pytest'.format(plugin.replace('_', '-')), + '--junit', + '--no-pty', + '--append-cov', + ) |
