mpizenberg / elm-test-rs

Fast and portable executable to run your Elm tests
BSD 3-Clause "New" or "Revised" License
81 stars 13 forks source link

Support newest or oldest bounds to test packages #14

Closed mpizenberg closed 3 years ago

mpizenberg commented 4 years ago

It would be nice to be able to check that even with the oldest set of compatible versions the tests pass. This can only be partially true though since indirect dependencies may force newer versions for some of the direct dependencies.

mpizenberg commented 3 years ago

Currently, the strategy is to try offline first, and if that fails switch to online. Here is where that is done:

https://github.com/mpizenberg/elm-test-rs/blob/aa75d6d28cfef72d93ba7a3aa6d271902498d38c/src/deps.rs#L198..L208

It would be nice if we could pass through a command line argument such as --offline, --online-newest or --online-oldest to force a given behavior.

mpizenberg commented 3 years ago

Done in 984a9e84