k8s-tutorial-python icon indicating copy to clipboard operation
k8s-tutorial-python copied to clipboard

Cypress (Unit/E2E) Testing

Open EmpireErwinKooi opened this issue 6 years ago • 1 comments

This PR demonstrates a way to utilize Cypress to E2E test the application both from a dev machine and automated through CI. No need to merge, this PR is just here for ease of finding the code.

To run the cypress tests locally, you need to install cypress on your machine: npm install -g cypress

Then, within your project directory, go to the kube101 directory and start the runner: cd django-poll-project/kube101 npx cypress open

Or run the unit test suite: python manage.py test

EmpireErwinKooi avatar Nov 11 '18 00:11 EmpireErwinKooi

This is for the 5 minute speed talks tomorrow morning.

EmpireErwinKooi avatar Nov 11 '18 01:11 EmpireErwinKooi