Code Monkey home page Code Monkey logo

Comments (7)

FabienDeshayes avatar FabienDeshayes commented on May 22, 2024

Hi,

First of all great work on Protractor. Still fresh but looks promising.

A bit related to that issue, I was wondering if you're planning to create a grunt-protractor task? If not I might just do it myself... but for that i'll need to wait for it to be a node module.

Thanks

from protractor.

jeffbcross avatar jeffbcross commented on May 22, 2024

I'm going to spend some time on this issue this afternoon. Hopefully it'll be a quick PR, but I'm not certain how much effort is involved.

from protractor.

jeffbcross avatar jeffbcross commented on May 22, 2024

I made a little progress Friday. It will take a little bit of time to write unit tests, given the complexity of mocking the different APIs.

from protractor.

tbosch avatar tbosch commented on May 22, 2024

@jeffbcross Just an idea for unit testing: If you find the point where webdriver.js does it's http calls to the selenium server and replace that with a mock, you might not need to mock the whole webdriver.js API, but only those http calls, which are also documented (http://code.google.com/p/selenium/wiki/JsonWireProtocol). This would result in a kind of integration test that are still very fast.

from protractor.

AdamQuadmon avatar AdamQuadmon commented on May 22, 2024

ping @jeffbcross, what about that? Can we help?

from protractor.

brianmriley avatar brianmriley commented on May 22, 2024

We're running via grunt using shell commands with an express server that we fire up:

grunt.loadNpmTasks('grunt-shell');
...
/**
 * Protractor Bin path mapping for supporting windows based development.
 */
var protractorBinPath = "node_modules/protractor/bin/";
var isWin = !!process.platform.match(/^win/);
...
/**
 * Changing references for windows execution.
 */
if(isWin) {
    protractorBinPath = "node_modules\\.bin\\";
}
...
/**
 * Run shell commands.
 */
shell: {
    // run protractor e2e testing
    protractor: {
        options: {
            stdout: true
        },
        command: protractorBinPath + 'protractor protractor.conf.js'
    }
}
...
/**
 * Individual task to run e2e test alone using connect web server.
 */
grunt.registerTask('e2e:stand-alone', ['express', 'shell:protractor']);

Followed by:

$ grunt e2e:stand-alone

And we have this wrapped up into our larger build process.

from protractor.

teerapap avatar teerapap commented on May 22, 2024

I wrote a Grunt plugin for running the protractor runner. https://github.com/teerapap/grunt-protractor-runner

from protractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.