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

Add multi-plugin testing #7

Open
madmaxoft opened this issue Oct 8, 2016 · 3 comments
Open

Add multi-plugin testing #7

madmaxoft opened this issue Oct 8, 2016 · 3 comments

Comments

@madmaxoft
Copy link
Member

Using scenario files' initializePlugin action it would be possible to load multiple plugins and test them together (allowing testing the inter-plugin calls).

However, it should still be possible to use the Checker in the classic single-plugin way, using the -p parameter.

@madmaxoft
Copy link
Member Author

Note: The simulator currently has a single sandbox for the plugin; this will need extending, so that separate plugins don't overwrite each other's globals.

@NiLSPACE
Copy link
Member

Can't we create a new Simulator for each plugin? Also, we could even make it so cPluginManager:CallPlugin works :)

@madmaxoft
Copy link
Member Author

The Simulator contains everything - hook registrations, command handlers, worlds, players etc., so it'd be easier to have multiple sandboxes in a single Simulator. And yes, making cPluginManager:CallPlugin() work is the main intent of this issue.

I see it as low priority, though. First we want to be able to test plugins as best as we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants