You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when running the Tester, the latest version of Mocha is downloaded from JsDelivr, which could lead to potential errors. It would be better if either the user installs Mocha or the scaffold manages its version:
User-managed: Users manually install Mocha and Chai. During runtime, the scaffold copies mocha.js from node_modules to the Test Plugin Directory.
Scaffold-managed: The scaffold directly bundles Mocha or programmatically controls the installation of dependencies on the user's side.
Since the scaffold includes methods to set up Mocha, the version of Mocha obtained on the user side should remain consistent with the one supported by the scaffold.
2. Test Cases May Not Need Compilation into a Single File
1. Mocha Framework on the User Side
Currently, when running the Tester, the latest version of Mocha is downloaded from JsDelivr, which could lead to potential errors. It would be better if either the user installs Mocha or the scaffold manages its version:
mocha.js
fromnode_modules
to the Test Plugin Directory.Since the scaffold includes methods to set up Mocha, the version of Mocha obtained on the user side should remain consistent with the one supported by the scaffold.
2. Test Cases May Not Need Compilation into a Single File
The example provided at Mocha's official documentation suggests:
It seems feasible to include each test file separately.
3. Rerunning Tests After Source/Test Code Reload
The current
ZoteroRunner
already supports reloading multiple plugins or specific ones. Therefore, it is possible to implement the following workflow:Test-related content should be moved out of the
dist
directory.The text was updated successfully, but these errors were encountered: