mercredi 23 septembre 2020

Check requirements for Angular project

Suggest please how to solve such task:

I try to write some autotests for angular task. For example: user have to make project with his own structure, to get users from github api. He has to use service, different components, interceptor, routing, forms and other angular features. For example, he made his own solution: stackblitz

And is there any chances to know (check requirements):

  1. if he use onPush in UsersComponent,
  2. async pipe,
  3. UsersService(and methods, can i get and test this methods?)
  4. reactive forms,
  5. interceptor,
  6. that pickUser() method log id to console,
  7. and UserService call http,

In 2 cases:

--I know user project structure

--and I dont know it (but in both cases I know all methods name).

Maybe I can parse angular files, or copy them and somehow get all I needed?

For now I know how to use protractor to test behavior of project, but I don't know how to check requirements

Aucun commentaire:

Enregistrer un commentaire