bddgenx 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +12 -24
- data/lib/bddgenx/pdf_exporter.rb +7 -5
- data/lib/bddgenx/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd8909495114be1932f114cbdbcb547563bb981b59863776f34d9bb9f3c7b053
|
4
|
+
data.tar.gz: edc0e4f298501dcc25a69f434f8979eef9f619e9179ec812883a06e0414cf2c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2631f4f1d186891e20c6a12e3b31a0e17ca9461404632a467a881ce5c429ed1de32ff2ba63dffbb7c4d7401754f892dbc7a173b2f579f5a0145a25e5e37c1c5
|
7
|
+
data.tar.gz: 71f40155dbf1d2200de6499641b01a7cad0eb23fba310ddab0a42ed3c2e9cc2a5260f963e9af54efc8dd979fca283717c5b39ddd09a42a5c86306b11bf56f30e
|
data/README.md
CHANGED
@@ -58,34 +58,22 @@ rake bddgen:gerar
|
|
58
58
|
📥 Como Escrever um .txt de Entrada
|
59
59
|
```txt
|
60
60
|
# language: pt
|
61
|
-
Como um
|
62
|
-
Quero
|
63
|
-
Para
|
61
|
+
Como um usuario do sistema
|
62
|
+
Quero fazer login com sucesso
|
63
|
+
Para acessar minha conta
|
64
64
|
|
65
|
-
[
|
66
|
-
|
67
|
-
|
65
|
+
[SUCCESS]@mobile
|
66
|
+
Quando preencho email e senha válidos
|
67
|
+
Então vejo a tela inicial
|
68
68
|
|
69
|
-
[
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
[SUCCESS]
|
74
|
-
Quando adiciono um produto ao carrinho
|
75
|
-
Então ele aparece na listagem do carrinho
|
76
|
-
|
77
|
-
[FAILURE]
|
78
|
-
Quando tento adicionar um produto esgotado
|
79
|
-
Então recebo uma mensagem de "produto indisponível"
|
69
|
+
[SUCCESS]@regressivo
|
70
|
+
Quando tento logar com "<email>" e "<senha>"
|
71
|
+
Então recebo "<resultado>"
|
80
72
|
|
81
73
|
[EXAMPLES]
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
86
|
-
[SUCCESS]
|
87
|
-
Quando adiciono "<produto>" com quantidade <quantidade>
|
88
|
-
Então vejo o total <total esperado>
|
74
|
+
| email | senha | resultado |
|
75
|
+
| user@site.com | 123456 | login realizado |
|
76
|
+
| errado@site.com | senha | credenciais inválidas |
|
89
77
|
```
|
90
78
|
✅ Blocos Suportados
|
91
79
|
[CONTEXT] – contexto comum
|
data/lib/bddgenx/pdf_exporter.rb
CHANGED
@@ -9,13 +9,15 @@ module Bddgenx
|
|
9
9
|
Dir.glob('features/*.feature').each do |feature_file|
|
10
10
|
base = File.basename(feature_file, '.feature')
|
11
11
|
nome_pdf = camel_case(base)
|
12
|
-
destino
|
13
|
-
|
12
|
+
destino = "pdf/#{nome_pdf}.pdf"
|
13
|
+
|
14
14
|
if File.exist?(destino)
|
15
|
-
|
16
|
-
|
17
|
-
puts "📄 PDF gerado: #{destino}"
|
15
|
+
puts "⚠️ PDF já existe: #{destino}"
|
16
|
+
next
|
18
17
|
end
|
18
|
+
|
19
|
+
exportar_arquivo(feature_file, destino)
|
20
|
+
puts "📄 PDF gerado: #{destino}"
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
data/lib/bddgenx/version.rb
CHANGED