fuelup icon indicating copy to clipboard operation
fuelup copied to clipboard

refactor(tests): refactor redundant installation tests with network calls

Open spiral-ladder opened this issue 2 years ago • 0 comments

We have 3 tests that actually attempt to install a toolchain in tests/toolchain.rs:

  • fuelup_toolchain_install_latest
  • fuelup_toolchain_install_nightly
  • fuelup_toolchain_install_nightly_date

We could probably do with just 1 of these just as a sanity check, say latest, but the rest could probably be refactored as input validation tests instead. That is, ensure that the fuelup toolchain install command accepts the following as valid inputs:

  • nightly
  • beta-1
  • beta-2
  • latest with date
  • nightly with date

We could also test that we reject invalid inputs:

  • latest with date, non-existent date (published dates are here)
  • beta with date

spiral-ladder avatar Jan 26 '23 09:01 spiral-ladder