stryker-net icon indicating copy to clipboard operation
stryker-net copied to clipboard

Diff run since timestamp

Open rouke-broersma opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe. It would be nice to be able able to tell stryker to run a test with only mutations new since some timestamp

Describe the solution you'd like Add option to provide a timestamp to the git diff feature. This will look through the commits and choose the closest commit before or on the specified timestamp.

rouke-broersma avatar Feb 19 '21 14:02 rouke-broersma

I could have a look at this.

danielmertens avatar Oct 14 '23 12:10 danielmertens

@rouke-broersma a few questions.

  • Do we want to introduce a new cli options for this or should this work with the existing since option? Something like --since-time <timestamp>?
  • What type of timestamp do we want to except?
    • hh:mm (current day)
    • hh:mm:ss (current day)
    • yyyy-MM-ddThh:mm:ss (uses current timezone)
    • yyyy-MM-ddThh:mm:ss+02:00
    • Epoch Unix Timestamp (?)
  • Or do we want to go a for a bit more ease of use like:
    • 30m (30 minutes in the past)
    • 2h (2 hours in the past)
    • 1d (1 day in the past)

danielmertens avatar Oct 14 '23 12:10 danielmertens

Ideally (and this might be super complex), you can pass this with the current --since: option and we don't need a new option. This means parsing the input into the correct type of target. --since is a "SingleOfNoValue" commandline option which means you can optionally supply a value with this flag. This value is currently supposed to be a committish but in my ideal scenario this can be committish, timestamp or whatever else we come up with.

Timestamp could be many formats but I would suggest starting with 'relative time' and maybe ISO8601 timestamp.

rouke-broersma avatar Oct 14 '23 12:10 rouke-broersma

hi @danielmertens where do you stand regarding this feature ? if not, could you de-assign yourself as a signal for others to pick up.

In any case, thanks for the time you dedicated to this.

dupdob avatar Jul 18 '24 10:07 dupdob