<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="markdown-here-wrapper" data-md-url="Thunderbird"
style="">
<p style="margin: 0px 0px 1.2em ! important;">Ciao lista,</p>
<p style="margin: 0px 0px 1.2em ! important;">qualcuno ha
esperienza nell’usare behave-django? Vorrei poter avere questo
layout nel progetto</p>
<pre style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;font-size: 1em; line-height: 1.2em;margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;white-space: pre; overflow: auto; border-radius: 3px; border: 1px solid rgb(204, 204, 204); padding: 0.5em 0.7em; display: block ! important;">
appA/
features/
featureA.feature
steps/
__init__.py
step_featureA.py
appB/
features/
featureB.feature
featureB2.feature
steps/
__init__.py
step_featureB.py
step_featureB2.py
</code></pre>
<p style="margin: 0px 0px 1.2em ! important;">Seguendo la
documentazione ho creato il file <code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;">behave.ini</code>
così configurato</p>
<pre style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;font-size: 1em; line-height: 1.2em;margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;white-space: pre; overflow: auto; border-radius: 3px; border: 1px solid rgb(204, 204, 204); padding: 0.5em 0.7em; display: block ! important;">
[behave]
; altre impostazioni ...
paths=appA/features/
appB/features/
</code></pre>
<p style="margin: 0px 0px 1.2em ! important;">Lancio i test con <code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;">./manage.py behave --simple</code>.
Gli step della prima app elencata in <code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;">paths</code>
vengono trovati e i relativi test eseguiti, mentre per le app
successive gli step non vengono trovati. Se esplicito alla riga
di comando il percorso alla cartella features tramite <code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;">./manage.py behave --simple appB/features</code>,
gli step vengono trovati. Al tempo stesso, la CLI fallisce come
nel caso del file di configurazione se indico più di un
percorso, per esempio <code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px; display: inline;">./manage.py behave --simple appB/features appA/features</code>.</p>
<p style="margin: 0px 0px 1.2em ! important;">Avete suggerimenti o
idee?</p>
<p style="margin: 0px 0px 1.2em ! important;">Grazie e ciao,</p>
<p style="margin: 0px 0px 1.2em ! important;">Davide</p>
<div
title="MDH:PHA+Q2lhbyBsaXN0YSw8L3A+PHA+cXVhbGN1bm8gaGEgZXNwZXJpZW56YSBuZWxsJ3VzYXJlIGJlaGF2ZS1kamFuZ28/IFZvcnJlaSBwb3RlciBhdmVyZSBxdWVzdG8gbGF5b3V0IG5lbCBwcm9nZXR0
bzwvcD48cD48YnI+PC9wPjxwPmBgYDwvcD48cD5hc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