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

[RFC] Plugin Architecture #325

Open
StevenLangbroek opened this issue May 12, 2015 · 6 comments
Open

[RFC] Plugin Architecture #325

StevenLangbroek opened this issue May 12, 2015 · 6 comments

Comments

@StevenLangbroek
Copy link

Elaborating on #324, it would be great to have a plugin architecture, each plugin using internal hooks, and exposing configuration options, much like karma-sauce-launcher exposes configuration for SauceLabs, and uses internal hooks to wire up its behavior:

var mocks = require('./mocks');

module.exports = function(pioneer){
  return pioneer.config({
    format: 'json',
    plugins: ['saucelabs', 'junit'],
    jUnit: {
      path: './spec/reports/integration.xml'
    },
    sauceLabs: {
      testName: 'Application Integration Tests',
      username: 'stevenlangbroek',
      accessKey: 'd6c47114-eff5-45b5-84ad-26d85552e861',
      browsers: {
        sl_ios_safari: {
          base: 'SauceLabs',
          browserName: 'iphone',
          platform: 'OS X 10.9',
          version: '7.1'
        },
        sl_android_42: {
          base: 'SauceLabs',
          platform: 'Linux',
          browserName: 'android',
          deviceName: 'LG Nexus 4 Emulator'
        },
        sl_android_40: {
          base: 'SauceLabs',
          platform: 'Linux',
          version: '4.0',
          browserName: 'android',
          deviceName: 'Motorola Atrix HD Emulator'
        }
      }
    },
    before: function(){
      return mocks.start();
    },

    after: function(results){
      mocks.stop();
    }
  });
}
@orizens
Copy link

orizens commented Jun 7, 2015

+1
I'd also like to use browserstack

@sethkrasnianski
Copy link
Member

I think this is a very useful idea. Particularly if we can use browserstack as a preliminary example. We've been wanting to hook into it for a while so that it properly attaches metadata to each test.

@sethkrasnianski
Copy link
Member

Are you interested in making a pass at it @StevenLangbroek or @orizens?

@orizens
Copy link

orizens commented Oct 8, 2015

@sethkrasnianski what do you mean by "making a pass"?

@sethkrasnianski
Copy link
Member

@orizens, I was a little vague. I should have said "Are you interesting in implementing a proof of concept?".

@orizens
Copy link

orizens commented Oct 8, 2015

@sethkrasnianski
I am - however, currently, have zero time for this.

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

3 participants