sixty-north / cosmic-ray

Mutation testing for Python
MIT License
565 stars 57 forks source link

NoOp : Add outputs #473

Closed Alcolo47 closed 5 years ago

Alcolo47 commented 5 years ago

Correcting no_op name: NoOp

Create baseline db with tempfile.mkstemp cosmic_ray.commands.execute now needs user open db instead of filenaùe On errors, Write errors in stdout and exit with exit code 1

Alcolo47 commented 5 years ago

With this, I can test by mutation environment, but:

Note: I make baseline db in /tmp because if you launch baseline twice, we reuse the same db: key violation error. Then we have to delete it after the run.

abingham commented 5 years ago

I like the basic idea of your change to execute. It's a better API.

abingham commented 5 years ago

Note: I make baseline db in /tmp because if you launch baseline twice, we reuse the same db: key violation error. Then we have to delete it after the run.

Another option is to allow baseline (perhaps with a flag) to overwrite the existing baseline. As I mentioned in my comments, I think there's a benefit to keeping the baseline session around after the baseline command finishes, at least in some cases.