Skip to content

Commit

Permalink
Rafatoração
Browse files Browse the repository at this point in the history
  • Loading branch information
thinogueiras committed Mar 10, 2024
1 parent 9fa1697 commit 5508994
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/continuous-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,31 @@ on:
branches: [ main ]

jobs:
api-tests:
tests:
timeout-minutes: 15
runs-on: ubuntu-latest
name: API Tests 🤖🤖

steps:
- name: Checkout 🚀🚀
uses: actions/checkout@v4

- name: Setup Python 🔧🔧
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies ➕➕
run: pip install -r requirements.txt

- name: API Tests 🧪🧪
run: robot -d ./reports -v EMAIL:${{ secrets.EMAIL }} -v PASSWORD:${{ secrets.PASSWORD }} tests

- name: Upload Reports 📖📖
- name: Publish Robot Reports 📄📄
if: always()
uses: actions/upload-artifact@v4
with:
name: Reports
name: Robot-Reports
path: reports
retention-days: 90
if-no-files-found: warn
Expand All @@ -52,4 +58,22 @@ jobs:
SLACK_ICON: https://cdn-icons-png.flaticon.com/512/3271/3271351.png
SLACK_TITLE: 'Some tests failed'
SLACK_MESSAGE: ':fire: Tests failed :fire:'
SLACK_USERNAME: FAILURE
SLACK_USERNAME: FAILURE

reports:
if: always()
needs: [tests]
runs-on: ubuntu-latest
continue-on-error: true
name: Reports 📄📄
steps:
- uses: actions/checkout@v4
- name: Download Robot Reports
uses: actions/download-artifact@v4
with:
name: Robot-Reports
path: reports
- name: Send report to commit
uses: joonvena/robotframework-reporter-action@v2.4
with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## Pré-requisitos mínimos de ambiente:

* [Python](https://www.python.org/downloads/) 3.10.x.
* [Python](https://www.python.org/downloads/) 3.11.x.

## Instalação do projeto:

Expand Down

1 comment on commit 5508994

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
15 0 0 15 100 633.865ms

Passed Tests

Name ⏱️ Duration Suite
Deve retornar todas as contas 0.027 s Accounts
Deve editar uma conta 0.050 s Accounts
Deve inserir uma conta 0.028 s Accounts
Não deve inserir uma conta com mesmo nome 0.026 s Accounts
Não deve remover conta com movimentação 0.052 s Accounts
Deve exigir autenticação 0.089 s Authorization
Deve validar o saldo da conta 0.051 s Balance
Deve retornar todas as Movimentações 0.025 s Movement
Deve inserir movimentação 0.066 s Movement
Deve validar os campos obrigatórios para a inserção de uma movimentação 0.022 s Movement
Não deve inserir movimentação com data futura 0.071 s Movement
Deve remover uma movimentação 0.046 s Movement
Deve validar o JSON Schema para Contas 0.027 s Schema
Deve validar o JSON Schema para Saldo 0.025 s Schema
Deve validar o JSON Schema para Movimentações 0.029 s Schema

Please sign in to comment.