Provide a way to test custom moves #1440
Replies: 1 comment 2 replies
-
There is a fork in the road here:
Considering that move streams is very much a moving target with an uncertain delivery date relatively far in the future, I would recommend thinking in terms of the existing move selector API. Whatever is done for that though will eventually get deprecated, when move streams becomes a thing, and brings its own testing harness. Since move selectors are currently not at the center of attention and we no longer see a way how we could evolve that framework, I can see a testing harness being developed as a community contribution. We would not be causing conflicts for one another, because move selectors aren't being actively developed anymore - therefore there would be no pressure on the community contribution, and it could evolve at its own pace. |
Beta Was this translation helpful? Give feedback.
-
Basically what the title says. We have several custom moves to enable changing Pickup and Dropoff actions within the same move and it would be very nice to have some tests for the whole move and not just our extracted index calculation logic.
I guess something like
testSolution.performMove(move)
or something similar should be sufficient for us. I suppose asserting the state of the solution and shadow variables after the move is something we would do with the assertion library of our choice.I've already mentioned it on reddit a while ago and got a response from Geoffrey that this is WIP. I also did see #1349, which I guess is related to this (or maybe a prerequisite).
In case any help is wanted with this and it's feasible to have an external contributor there, I'd be happy to collaborate here (got a bit more spare time in the months ahead, so I figured this might be interesting to spend my time with 🙂 )
Beta Was this translation helpful? Give feedback.
All reactions