mardi 14 mai 2019

Run all tests on several URLs

Following Problem: I got about 50 similar websites which should all pass the cypress-tests. And they did I simply let for every website run all tests.

My Issue is now, that it appears as one single suite instead of one per website. I got an JSON File with all my information needed (url, name...). This can be edited as more similar websites go live. Is there a possibility to create on single suite per website and still dynamicly run all tests by just editing the JSON?

415 passing (13m)


  (Results)

  ┌──────────────────────────────────────┐
  │ Tests:        415                    │
  │ Passing:      415                    │
  │ Failing:      0                      │
  │ Pending:      0                      │
  │ Skipped:      0                      │
  │ Screenshots:  0                      │
  │ Video:        false                  │
  │ Duration:     12 minutes, 58 seconds │
  │ Spec Ran:     linde/allTests.spec.js │
  └──────────────────────────────────────┘


====================================================================================================

  (Run Finished)


      Spec                                                Tests  Passing  Failing  Pending  Skipped 
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔ linde/allTests.spec.js                    12:58      415      415        -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    All specs passed!                           12:58      415      415        -        -        -  


it should be:

415 passing (13m)


  (Results)

  ┌──────────────────────────────────────┐
  │ Tests:        415                    │
  │ Passing:      415                    │
  │ Failing:      0                      │
  │ Pending:      0                      │
  │ Skipped:      0                      │
  │ Screenshots:  0                      │
  │ Video:        false                  │
  │ Duration:     12 minutes, 58 seconds │
  │ Spec Ran:     linde/allTests.spec.js │
  └──────────────────────────────────────┘


====================================================================================================

  (Run Finished)


      Spec                                                Tests  Passing  Failing  Pending  Skipped 
  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔ linde/website1.spec.js                    02:58      15      15
  | ✔ linde/website2.spec.js                    02:58      15      15  
  |      .....
      -        -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    All specs passed!                           12:58      415      415        -        -        -  

Aucun commentaire:

Enregistrer un commentaire