Skip to content

Remove registerTestPlatform() #695

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

Merged
merged 1 commit into from
Oct 4, 2017

Conversation

nex3
Copy link
Member

@nex3 nex3 commented Oct 4, 2017

Now that the Loader is the canonical place for determining which
TestPlatforms are valid, we no longer need a separate mechanism for
registering platforms. Adding a plugin to the loader is sufficient.

See #391

Now that the Loader is the canonical place for determining which
TestPlatforms are valid, we no longer need a separate mechanism for
registering platforms. Adding a plugin to the loader is sufficient.

See #391
@nex3 nex3 requested a review from grouma October 4, 2017 03:21
@grouma
Copy link
Member

grouma commented Oct 4, 2017

I fail to see how we will register a new platform in the loader. Can you give a small code snippet?

@nex3
Copy link
Member Author

nex3 commented Oct 4, 2017

loader.registerPlatformPlugin([
  new TestPlatform("name", "identifier")
], () => new MyPlatformPlugin());

Or, using the top-level hack API:

registerPlatformPlugin([
  new TestPlatform("name", "identifier")
], () => new MyPlatformPlugin());

Copy link
Member

@grouma grouma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh it's clear to me now. Thanks! LGTM

@nex3 nex3 merged commit 44cfc06 into feature.flexible-test-platforms Oct 4, 2017
@nex3 nex3 deleted the no-register-test-platform branch October 4, 2017 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants