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
Is your feature request related to a problem? Please describe.
Pre-mutation switching, we decided to add sandboxFileNames to the run options. The idea is that a test runner could use these files to clear node's require cache. However, this cannot be trusted post-mutation switching. A buildCommand is generally used to transpile the original sandbox files which are then required by a test run.
The Jasmine test runner uses these now.
Describe the solution you'd like
Refactor jasmine test runner to not use the sandbox files (same implementation as in the mocha runner).
(maybe?) add an e2e test for jasmine in combination with the build command setting
Remove sandboxFileNames from the test runner dependency injection values.
The text was updated successfully, but these errors were encountered:
…2369)
Remove `sandboxFileNames` as injectable value for test runner plugins. Test runner plugins are expected to do their own file discovery in the current working directory. The list of sandbox files that Stryker internally copied over might differ from the list of files in the sandbox, because the user might have configured a `buildCommand` that compiled the files to their final representation.
* Remove `sandboxFileNames` from dependency injection context
* Rename `OptionsContext` to `PluginContext` and remove the `PluginContexts` mapped type (no longer needed)
* Move generic require cache clean functionality to `@stryker-mutator/util`
* Use this in the mocha-runner
* Use this in the jasmine-runner.
Fixed#2351
Is your feature request related to a problem? Please describe.
Pre-mutation switching, we decided to add
sandboxFileNames
to the run options. The idea is that a test runner could use these files to clear node's require cache. However, this cannot be trusted post-mutation switching. AbuildCommand
is generally used to transpile the original sandbox files which are then required by a test run.The Jasmine test runner uses these now.
Describe the solution you'd like
sandboxFileNames
from the test runner dependency injection values.The text was updated successfully, but these errors were encountered: