Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

record more side effects #47

Open
markvanderloo opened this issue Feb 10, 2020 · 0 comments
Open

record more side effects #47

markvanderloo opened this issue Feb 10, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@markvanderloo
Copy link
Owner

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 markvanderloo added the enhancement New feature or request label Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant