OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/doc/TESTING.md

18 lines
772 B

Running tests
====================
OpenProject is a hybrid application with most parts being Rails, along with some directives being used within Rails templates (the legacy application), and an Angular frontend for isolated SPA-like Modules such as the Work Packages module.
## Frontend specs
The Angular frontend services and components can be tested with frontend specs. A good isolated example on how to set up an Angular TestBed to test components is `frontend/src/app/modules/a11y/accessible-by-keyboard.component.spec.ts`
If you want to test services that have no dependencies, a simple instantiation of that class is sufficient to test the service in isolation. A good example is ` frontend/src/app/components/projects/current-project.service.spec.ts`