Comments (4)
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.
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.
@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.
Thanks!
from dspace-angular.
Related Issues (20)
- Wrong prefix added to the year of a date input type in submission
- Item don't render in edit item relationships type for relationship types which are tilted on the item to which it is not tilted HOT 2
- Resolve CodeQL alert for "Unvalidated dynamic method call"
- Upgrade to Angular 17
- Refactor initial CSRF creation into an Effect HOT 1
- Clean up and document decorators replaced by static maps
- Size regression in `main.js` bundle caused by standalone component migration HOT 2
- Currently the frontend sends it's own user agent to the server API requests HOT 2
- Error creating bean with name 'authenticationRestController' HOT 3
- Submission warning icon does not change to checkmark when valid for certain configurations
- [DSpace 8 Admin Reports] Performance issues caused by high number of item loadings.
- [DSpace 8 Admin Reports] Performance issues caused by large page sizes.
- [DSpace 8 Admin Reports] Move part of the code to a full-featured DataService.
- [DSpace 8 Admin Reports] Allow Metadata Query report results to be exported in CSV format.
- Color contrast in Submit button on New item form is not sufficient HOT 2
- Missing translations to Spanish HOT 1
- Create Collection takes 30-45 seconds & sometimes times out HOT 8
- docker-compose create-administrator fails HOT 1
- ORCID authentication bug on Sandbox/Demo. HOT 4
- DSpace 8 New User Registration does not work when recaptcha disabled HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dspace-angular.