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)
- Associate forms to collections in the UI HOT 1
- In Profile, a user can see its groups but not related subgroups
- Migration of collections between communities
- Search bar improvements
- Managing Community Hierarchy: reuse the existing code to the UI
- Enable edition/customization of “News” and the default “Non-Exclusive License” HOT 2
- Possibility to edit custom metadata - backend HOT 1
- Improve/refactor Administrator Reports (DS8 Beta feature)
- Improve the usability and design of the file editing area and the permissions themselves
- Export matadata in other bibliographic formats besides .csv (.ris, .enl, .bib) HOT 2
- Enable edition/customization of “Privacy Policy” and “End User Agreement”
- UX improvement of file permissions (Requires discussion and suggestions) HOT 1
- Error when Editing Groups: 'admin.access-control.groups.form.members-list.notification.failure' and 404 Not Found Exceptions in DSpace 7.6 with DSpace CRIS HOT 1
- Crosswalk for Highwire Press (Google Scholar) citation_ metadata tags should be configurable HOT 1
- Discussion: Do we need a UI/UX guide for developers? HOT 3
- dspace-angular-dspace-8.0 i18n add traditional Chinese! HOT 1
- Discussion: should we use http forwards for requests like /handle/<prefix>/<suffix>? HOT 3
- Faulty submission form: arrange more than 3 lines HOT 1
- Cannot use ordinary file browser/selector in Metadata Import (CSV) HOT 1
- Mapped collection themes are never displayed when viewing an item HOT 1
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.