Comments (6)
Ah, yea, I forgot about that. Yes, it should handle this... I already store the time it took for a non-mutated test run so should be fairly trivial. It just makes tests_pass()
a bit more complex since I can't have a simple blocking call.
from mutmut.
Huh. Seems check_call has a timeout
option in Python 3.3+, I think I'll use that. It means you won't get infinite loop checking in lower python versions, but that seems like an ok tradeoff to me. With a warning message I think it's fine. What do you think?
from mutmut.
Oh, and I was thinking that the timeout should be baseline_time_elapsed * 10
to be very resistant against timing issues.
from mutmut.
Seems fine to me! The first three projects of mine I tried mutmut
on hit this pretty quickly (each contained one of the state-machine-like loops). (another non-portable timeout mechanism is signal.alarm
-- though the check_call
timeout is probably good enough for what I'd want 👍)
I'm also willing to hack on this if you'd like
from mutmut.
I'd welcome a PR for sure. Should be just a matter of inserting an extra kwargs on the check_output call if the python version is > 3.3.
If you haven't looked at the source for mutmut yet you'll be surprised and delighted at how super tiny the code is I think :P
from mutmut.
It was super trivial and I had some time over, so I fixed this and another bug and rolled a new release. Let me know if it didn't work!
from mutmut.
Related Issues (20)
- Timeout Mechanism Not Working HOT 2
- Some results missing from html report HOT 6
- `mutmut run 5` unintuitively does not schedule if cached
- Update mutmut cache directly after r
- Modifying mutmut cache directly HOT 2
- Pony throws IndexError on results command HOT 2
- 2.4.3 and 2.4.4 release are not tagged in repo
- Mutate str methods? HOT 1
- `mutmut show --all` flag
- Issue with mutmut mutation in presence of type hints HOT 3
- Invalid mutations involving positional-only and keyword-only arguments HOT 1
- Setting the --no-progress flag also removes output from a run.
- [Feature Request] Random Sampling of Mutations HOT 3
- Support new python's versions HOT 1
- TypeError: can only concatenate str (not "list") to str in mutmut 2.4.4 HOT 2
- --CI parameter HOT 5
- Use patch file on Windows never executes mutants
- Tests require the 'testdata' feature but it isn't listed in test_requirements.txt HOT 5
- Support mutating changed lines only HOT 7
- Release Request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mutmut.