SublimeText / UnitTesting

Testing Sublime Text Packages
MIT License
112 stars 32 forks source link

Refactor self tests #244

Closed deathaxe closed 8 months ago

deathaxe commented 8 months ago

This commit...

  1. fixes sublime.package_path() called on import time, causing invalid or unexpected output paths being used.
  2. use setUp() and tearDow() methods to setup and cleanup packages used for self tests in a batch per TestCase in order to prevent or reduce risk of possible race conditions or failing API calls due to too frequent package reloading or removing events.
  3. optimize availability check for ColorSchemeUnit package