Feature/pipeline - #13
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Este PR reorganiza a estrutura/comandos de testes e adiciona um workflow do GitHub Actions para executar testes unitários, atendendo à Issue #10 (pipeline para testes automatizados).
Changes:
- Ajusta o caminho de import no teste unitário para refletir a nova organização de pastas.
- Adiciona testes e2e com Playwright para a calculadora.
- Cria workflow de CI para instalar dependências e rodar testes unitários.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
tests/unit/calculator.test.js |
Atualiza o require para apontar corretamente para src/calculator. |
tests/e2e/calculator.e2e.test.js |
Adiciona testes e2e via Playwright para validação pela UI. |
package.json |
Ajusta scripts de teste para focar em unit e altera execução de e2e. |
.gitignore |
Ajusta regra de ignore do relatório do Playwright. |
.github/workflows/pipeline.yml |
Adiciona workflow para rodar testes unitários via GitHub Actions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+11
to
+13
| "test": "jest tests/unit", | ||
| "test:coverage": "jest --coverage", | ||
| "test:e2e": "playwright test" | ||
| "test:e2e": "playwright test --headed" |
Comment on lines
+7
to
+9
| on: | ||
| workflow_dispatch: | ||
|
|
Comment on lines
+29
to
+30
| - name: Instalação das dependências do projeto | ||
| run: npm install |
Comment on lines
+25
to
+27
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
Issue
Resolves #10
Checklist