codecov-io: # [Codecov](https://codecov.io/gh/tox-dev/tox-travis/pull/137?src=pr&el=h1) Report
> Merging [#137](https://codecov.io/gh/tox-dev/tox-travis/pull/137?src=pr&el=desc) into [master](https://codecov.io/gh/tox-dev/tox-travis/commit/9778c244b3328614a59a7847d39ccff2ba819f4d?src=pr&el=desc) will **decrease** coverage by `2.34%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/tox-dev/tox-travis/pull/137/graphs/tree.svg?width=650&token=CBMEkiKkWy&height=150&src=pr)](https://codecov.io/gh/tox-dev/tox-travis/pull/137?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
- Coverage   88.26%   85.91%   -2.35%     
==========================================
  Files           5        5              
  Lines         213      213              
  Branches       48       48              
==========================================
- Hits          188      183       -5     
- Misses         21       23       +2     
- Partials        4        7       +3
```


| [Impacted Files](https://codecov.io/gh/tox-dev/tox-travis/pull/137?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [src/tox\_travis/hooks.py](https://codecov.io/gh/tox-dev/tox-travis/pull/137/diff?src=pr&el=tree#diff-c3JjL3RveF90cmF2aXMvaG9va3MucHk=) | `87.09% <100%> (-12.91%)` | :arrow_down: |
| [src/tox\_travis/envlist.py](https://codecov.io/gh/tox-dev/tox-travis/pull/137/diff?src=pr&el=tree#diff-c3JjL3RveF90cmF2aXMvZW52bGlzdC5weQ==) | `91.56% <0%> (-1.21%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/tox-dev/tox-travis/pull/137?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/tox-dev/tox-travis/pull/137?src=pr&el=footer). Last update [9778c24...217d43e](https://codecov.io/gh/tox-dev/tox-travis/pull/137?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

diff --git a/.appveyor.yml b/.appveyor.yml
index 458ea72..ce0aeee 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -5,10 +5,11 @@ environment:
     - TOXENV: py35
     - TOXENV: py36
 install:
-  - pip install tox
+  - C:\Python37\python -m pip install -U pip virtualenv setuptools wheel six
+  - C:\Python37\python -m pip install -U tox
 build: false
 test_script:
-  - tox
+  - C:\Python37\scripts\tox
 matrix:
   fast_finish: true
 skip_branch_with_pr: true
diff --git a/src/tox_travis/hooks.py b/src/tox_travis/hooks.py
index 9b84632..e4661dd 100644
--- a/src/tox_travis/hooks.py
+++ b/src/tox_travis/hooks.py
@@ -44,7 +44,9 @@ def tox_configure(config):
                   'envs that Tox should run are declared in the tox config.',
                   file=sys.stderr)
             autogen_envconfigs(config, undeclared)
-        config.envlist = envlist
+        # Also set envlist_default to allow us to inspect outcomes
+        # via tox -l in the tests, until a better solution arrives.
+        config.envlist_default = config.envlist = envlist
 
     # Override ignore_outcomes
     if override_ignore_outcome(ini):

master branch fails with tox master
```
[7931] /home/vsts/work/1/s/upstream/tox-travis$ /home/vsts/work/1/s/upstream/tox-travis/.tox/py37/bin/py.test
============================= test session starts ==============================
platform linux -- Python 3.7.2, pytest-4.5.0, py-1.8.0, pluggy-0.11.0
cachedir: .tox/py37/.pytest_cache
rootdir: /home/vsts/work/1/s/upstream/tox-travis
plugins: mock-1.10.4
collected 57 items

tests/test_after.py .................                                    [ 29%]
tests/test_envlist.py .FFFFFFFFFFFFFFFFFFFFFFFFFFFF.....                 [ 89%]
tests/test_hacks.py .                                                    [ 91%]
tests/test_hooks.py ..                                                   [ 94%]
tests/test_utils.py ...                                                  [100%]

=================================== FAILURES ===================================
____________________ TestToxEnv.test_travis_config_filename ____________________

self = <test_envlist.TestToxEnv object at 0x7f9bb2f7ed30>
tmpdir = local('/tmp/pytest-of-vsts/pytest-1/test_travis_config_filename0')
monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f9bb2f7ee80>

    def test_travis_config_filename(self, tmpdir, monkeypatch):
        """Give the correct env for manual filename."""
        with self.configure(tmpdir, monkeypatch, tox_ini, 'CPython', 3, 6,
                            ini_filename='spam.ini'):
>           assert self.tox_envs(ini_filename='spam.ini') == ['py36']
E           AssertionError: assert ['py26', 'py2...ypy3', 'docs'] == ['py36']
E             At index 0 diff: 'py26' != 'py36'
E             Left contains 5 more items, first extra item: 'py27'
E             Use -v to get the full diff

```
diff --git a/tests/test_envlist.py b/tests/test_envlist.py
index 3de3cf3..4a3b167 100644
--- a/tests/test_envlist.py
+++ b/tests/test_envlist.py
@@ -2,6 +2,7 @@
 import py
 import re
 import subprocess
+import pytest
 from contextlib import contextmanager
 
 
@@ -293,6 +294,13 @@ class TestToxEnv:
         with self.configure(tmpdir, monkeypatch, tox_ini, 'CPython', 2, 7):
             assert self.tox_envs() == ['py27', 'docs']
 
+    # XFAIL because of changes to tox -l to make it show declared envs
+    # rather than the envs that will actually run, which is what we
+    # need to test. When a better option is available, we can get this
+    # test working again.
+    #
+    # # https://github.com/tox-dev/tox/pull/1284#issuecomment-488411553
+    @pytest.mark.xfail
     def test_respect_overridden_toxenv(self, tmpdir, monkeypatch):
         """Ensure that TOXENV if given is not changed."""
         with self.configure(tmpdir, monkeypatch, tox_ini, 'CPython', 2, 7):

pip install -e .
parse_log_pytest
pytest
pytest pytest-mock
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
certifi==2021.5.30
distlib==0.3.9
filelock==3.4.1
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
platformdirs==2.4.0
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
pytest-mock==3.6.1
six==1.17.0
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tox==3.28.0
-e git+https://github.com/tox-dev/tox-travis.git@9778c244b3328614a59a7847d39ccff2ba819f4d#egg=tox_travis
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
virtualenv==20.17.1
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: tox-travis
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - distlib==0.3.9
      - filelock==3.4.1
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - platformdirs==2.4.0
      - pytest-mock==3.6.1
      - six==1.17.0
      - tox==3.28.0
      - virtualenv==20.17.1
prefix: /opt/conda/envs/tox-travis

tests/test_envlist.py::TestToxEnv::test_travis_config_filename tests/test_envlist.py::TestToxEnv::test_travis_default_26 tests/test_envlist.py::TestToxEnv::test_travis_default_27 tests/test_envlist.py::TestToxEnv::test_travis_default_34 tests/test_envlist.py::TestToxEnv::test_travis_default_pypy tests/test_envlist.py::TestToxEnv::test_travis_default_pypy3 tests/test_envlist.py::TestToxEnv::test_travis_python_version_py27 tests/test_envlist.py::TestToxEnv::test_travis_python_version_py35 tests/test_envlist.py::TestToxEnv::test_travis_python_version_pypy tests/test_envlist.py::TestToxEnv::test_travis_python_version_pypy3 tests/test_envlist.py::TestToxEnv::test_travis_not_matching tests/test_envlist.py::TestToxEnv::test_travis_nightly tests/test_envlist.py::TestToxEnv::test_travis_override tests/test_envlist.py::TestToxEnv::test_keep_if_no_match tests/test_envlist.py::TestToxEnv::test_default_tox_ini_overrides tests/test_envlist.py::TestToxEnv::test_factors tests/test_envlist.py::TestToxEnv::test_match_and_keep tests/test_envlist.py::TestToxEnv::test_django_factors tests/test_envlist.py::TestToxEnv::test_non_python_factor tests/test_envlist.py::TestToxEnv::test_travis_factors_py27 tests/test_envlist.py::TestToxEnv::test_travis_factors_py35 tests/test_envlist.py::TestToxEnv::test_travis_factors_osx tests/test_envlist.py::TestToxEnv::test_travis_factors_py27_osx tests/test_envlist.py::TestToxEnv::test_travis_factors_language tests/test_envlist.py::TestToxEnv::test_travis_env_py27 tests/test_envlist.py::TestToxEnv::test_travis_env_py27_dj19 tests/test_envlist.py::TestToxEnv::test_travis_env_py35_dj110
tests/test_envlist.py::TestToxEnv::test_not_travis tests/test_envlist.py::TestToxEnv::test_legacy_warning tests/test_envlist.py::TestToxEnv::test_travis_ignore_outcome tests/test_envlist.py::TestToxEnv::test_travis_ignore_outcome_unignore_outcomes tests/test_envlist.py::TestToxEnv::test_travis_ignore_outcome_not_unignore_outcomes tests/test_envlist.py::TestToxEnv::test_local_ignore_outcome_unignore_outcomes
src/tox_travis/hooks.py .appveyor.yml
src/tox_travis/hooks.py .appveyor.yml