Git Product home page Git Product logo

Comments (4)

sourcedump avatar sourcedump commented on May 29, 2024

Hello!
I need some hints to decide how to proceed and I'm sure that someone of you has more experience than me with the 'package.json'.
Protractor needs to be installed as global. Should I put it into the 'global' script? Or we should create a 'global-test' or something like that?
Moreover, Protractor has Selenium server as dependency that can be installed with the following shell command:
webdriver-manager update
In this case where I can put that command (must be executed after the Protractor installation)?
For a more clean install I should check the presence of a Java SDK because it's needed by Selenium.
Maybe all these operations need a separated shell script?
Thanks

from dspace-angular.

artlowel avatar artlowel commented on May 29, 2024

angular-cli uses these exact same tools for testing. If I were you, I'd set up a new angular-cli project, and take a look at the code it generates: which relevant libraries are added to package.json, what the config files for these tools look like, etc. It should give you a good starting point.

Looking at a local angular-cli project, it would indeed seem that protractor is a global dependency, and should therefore be added to the global script. And that they add a e2e npm script that runs protractor, and a pree2e script (meaning it will trigger automatically before every run of e2e) that runs "webdriver-manager update"

from dspace-angular.

 avatar commented on May 29, 2024

@artlowel good advice

For a more complete setup for testing I would check out this starter project. It is not using Angular Universal, but that should not play a role on the testing strategy or setup.

https://github.com/AngularClass/angular2-webpack-starter

from dspace-angular.

sourcedump avatar sourcedump commented on May 29, 2024

Thanks!

from dspace-angular.

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.