My project with test for Grafana. It's a public demonstration for my skills in autotests. I'm learning JS/TS + Cypress currently. And my repository and code will be changed.
My project based on TypeScript now
I will add information about setup tests and environment as soon as possible
All test placed in Cypress directory
- Cypress 12.14.0
- Allure 2.40.2
- TypeScript 5.7.2
- Install Grafana on local machine from https://github.com/grafana/grafana with any comfortable option
- Start Grafana (check that this address is true http://localhost:3000/)
- Clone this repository on your machine
- Go to directory
CypressTests
and run in the command Linenpx cypress open
- Choose directory
e2e/GrafanaTests
in Cypress (default directory may delete) - Choose any test and run with graphic interface (or console with command
npx cypress run --spec "cypress/e2e/GrafanaTests/*.cy.js"
)
I used Allure report system for creating reports How to use it?
- Install Cypress 12.14.0 (New version of Cypress (13+) don't work with Allure)
- Install Allure
- Run all tests with command
npx cypress run --spec "cypress/e2e/**/*.spec.js" --env allure=true
- Run
npm run allure:report
for create reports - Run
npm run allure:open
for open and view all reports
Current state the Allure:
Now all tests implemented in GithubActions. Start available only for me. But you are possible check results on page with actions
All settings in ci.yml