DescartesResearch / TeaStore

A micro-service reference test application for model extraction, cloud management, energy efficiency, power prediction, single- and multi-tier auto-scaling
https://se.informatik.uni-wuerzburg.de
Apache License 2.0
118 stars 137 forks source link

Add cypress e2e tests #203

Closed Daskus1 closed 3 years ago

Daskus1 commented 3 years ago

This PR suggests adding end-to-end tests to the project to foster research in the area of testing microservices. To begin with, this initial set of test cases covers the main functionality of the TeaStore. We further propose to use the end-to-end testing framework Cypress rather than simple bash scripts, as it gives more flexibility when writing (more complex) tests and allows researchers to add custom cypress test event listeners and instrument the tests more easily. If desired, we can add a CI integration for travis or Github actions in a follow-up pull request, that will make sure that no regressions are introduced by future changes.

Best regards, Daniel & Daniel, contribution from Chair of Software and Systems Engineering (TUM)

SimonEismann commented 3 years ago

Hey guys, this looks pretty amazing. I'll test them out in the next couple of days and report back.

Based on the readme, adding them to the CI/CD pipeline should also be pretty straight forward :)

Daskus1 commented 3 years ago

Awesome! We just added a new cypress action to the CI/CD pipeline that builds the project and runs the e2e tests.

SimonEismann commented 3 years ago

The cypress tests work like a charm, thank you so much for contributing to the TeaStore!