diff options
author | drebs <drebs@leap.se> | 2016-08-15 20:39:06 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2016-08-15 20:39:06 -0300 |
commit | 29f528927322bb8e3ca326399367c33225b492b5 (patch) | |
tree | ad22e8874e7b6949da36ed729c9f753e541983d6 /common/src/leap/soledad | |
parent | 6fd0062c4c2199e610d7832bbfbd57a07abab9e1 (diff) |
[test] allow for shell autocomplete for test names
tox was configured to change to the testing/tests directory before
executing pytest, by using tox's "changedir" configuration option. The
reason why this was the case is that we wanted to discover tests inside
the testing/tests directory only.
The problem with that approach is that if we wanted to point to a
specific test file, for example "tests/perf/test_sync.py", we would have
to omit the "tests" part and write "tox perf/test_sync.py" because the
argument would be understood as relative to the changed dir. That is not
practical as doesn't allow to use the shell autocomplete, and is also
not the only way to achieve what we want.
Actually, pytest has a configuration option called "testpaths" where you
can indicate where it should discover tests. This commit changes one
approach by the other and allows to user shell autocomplete for easyness
of testing during development.
Diffstat (limited to 'common/src/leap/soledad')
0 files changed, 0 insertions, 0 deletions