Skip to content

Latest commit

 

History

History
 
 

blogs__vue-vuex-rest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Testing Vue + Vuex + REST application

Testing Vue + Vuex + REST TodoMVC using Cypress.

Blog Post

The blog post

Application organization

Shows how to

Spec files are in cypress/e2e folder

  • test application through the GUI in ui-spec.cy.js
  • mock REST calls to the server
  • test application through the Vuex store in store-spec.cy.js
  • test application through REST calls in api-spec.cy.js
  • test text file upload

Script commands

  • npm run reset:db resets data.json to have empty list of todos

Speed test

Spec file cypress/e2e/speed-spec.cy.js shows how to get test and command timings.

Speed spec