feat: smart test generation — only modified .kt files + kotlin guard + coverage table#100
Merged
rviannaoliveira merged 3 commits intomainfrom Mar 29, 2026
Merged
Conversation
Contributor
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.

Changes
1. Guard de arquivos .kt
Step novo logo após checkout — verifica
git diff origin/main...HEADe pula todo o workflow se nenhum.ktfoi modificado.workflow_dispatchsempre passa.2. Claude API só para .kt modificados no PR
No modo automático (
workflow_run), o scan agora filtra apenas os.ktmodificados no PR que ainda não têm teste — em vez de processar todos os arquivos sem cobertura. Economiza créditos.workflow_run→ só.ktdo PR sem testeworkflow_dispatchsem override → scan completoworkflow_dispatchcom override → arquivos informados3. Branch com auto-incremento
cover/test→cover/test-1→cover/test-2(sem non-fast-forward em re-runs)4. Tabela de evolução de cobertura no PR
Body do PR gerado mostra antes/depois.
5. Correções anteriores
printfcom variável correta + redirecionamento>> $GITHUB_OUTPUTGH_TOKEN: secrets.GH_PAT(nãogithub.token)token:— autenticação viagit remote set-urlno pushlog.txtadicionado ao.gitignore6. Documentação
claude-doc/step_command_ci_test.mdatualizado com todas as armadilhas encontradas e como replicar em outro repo.