Can't run mutmut
See original GitHub issueI have this error.
command:
mutmut run --paths-to-mutate=$PROJECT --tests-dir=$TESTS_DIR
Traceback (most recent call last):
File "/usr/local/bin/mutmut", line 5, in <module>
climain()
File "/usr/local/lib/python3.5/site-packages/click/core.py", line 695, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/click/core.py", line 654, in main
_verify_python3_env()
File "/usr/local/lib/python3.5/site-packages/click/_unicodefun.py", line 69, in _verify_python3_env
if locale.lower().endswith(('.utf-8', '.utf8')):
TypeError: a bytes-like object is required, not 'str'
Docker:
Client:
Version: 18.03.1-ce
API version: 1.37
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:17:20 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.1-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: 9ee9f40
Built: Thu Apr 26 07:15:30 2018
OS/Arch: linux/amd64
Experimental: false
Docker Image:
amazonlinux:2017.09
requirements.txt:
...
mutmut==1.3.1
pytest==4.2.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
mutmut - python mutation tester — mutmut documentation
Run mutmut with mutmut run . · Show the mutants with mutmut results · Apply a surviving mutant to disk running mutmut apply...
Read more >`mutmut` Stops Running After About 100 Mutants
I'm posting this here to help out mutmut 's dev solve this issue, because he doesn't know how to fix it yet.
Read more >Mutmut: a Python mutation testing system - Medium
Mutmut: a Python mutation testing system ... It's not great because it can't be run in parallel but at least it works and...
Read more >Mutmut - Ned Batchelder
If a mutation doesn't produce a test failure, then you need to add to ... One nice touch: if you interrupt mutmut, when...
Read more >Discovering Python mutmut | Blue Sky Junkie
Running mutmut itself to get an initial run against your tests is also ... I won't work through all of them here and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @boxed , I changed the command:
mutmut run --paths-to-mutate=$PROJECT --tests-dir=$TESTS_DIR --runner="pytest"
I also had a class that gave me problems.
Thanks.
I’d recommend to put those settings in setup.cfg so you don’t need to remember them and can just run mutmut run.