tinytest icon indicating copy to clipboard operation
tinytest copied to clipboard

record more side effects

Open markvanderloo opened this issue 5 years ago • 0 comments

Brody Gaslam gives a nice, non-exhaustive list of side effects that may be interesting while testing.

  1. Workspace / Evaluation Environment
  2. Random seed
  3. ~Working directory~
  4. Search path
  5. Global options
  6. Loaded namespaces
  7. System time
  8. ~System variables~
  9. ~Locale~

The ones that are crossed off are covered by tinytest already. besides that, tinytest keeps track of files created in the working directory. Note that 8 and 9 are covered by environment variables.

Changes in global options are not recorded but they are reset after a test file is run.

Interesting ones to add:

  1. Search Path
  2. Global options
  3. Loaded namespaces
  • Maybe open connections? Not sure if that is possible
  • Maybe open devices/files? Idem

markvanderloo avatar Feb 10 '20 16:02 markvanderloo