Skip to content

Atividade em sala para disciplina de Teste de Software

Notifications You must be signed in to change notification settings

sergioh665/Py2cfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preparação do ambiente na sua máquina...

Instalando WSL

wsl --install -d Ubuntu

Atualizar listas de pacotes

sudo apt update

Instalar pacotes e ferramentas

sudo apt install python3 python3-pip python3-venv graphviz

Mudar para diretório de destino

cd /mnt/c/Users/seu_usuario/Desktop/pasta_destino

Criar ambiente virtual

python3 -m venv venv

Ativar ambiente virtual

source venv/bin/activate

Instalar pacotes

pip install graphviz py2cfg

Código para criar .svg

from py2cfg import CFGBuilder 
# Construa o CFG a partir do arquivo Python de teste
cfg = CFGBuilder().build_from_file('arquivo', 'seu_arquivo.py')
# Gere a visualização do CFG e salve como SVG
cfg.build_visual('arquivo-fib', 'svg')

About

Atividade em sala para disciplina de Teste de Software

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages