Hi Igal,

It is possible that you use maven failsafe instead of maven surefire to run 
your tests? That would explain why you always have a successful maven build.


Best Regards,

Rafa.

El miércoles, 20 de enero de 2016, 7:35:52 (UTC+1), igal epshtein escribió:
>
> Do you need the entire project ?
>
> I was thinking that the config file should be enough ...
>
> On Tuesday, January 19, 2016 at 9:15:05 PM UTC+2, mauro.talevi wrote:
>>
>> That's possible, but if you don't provide a project to reproduce the 
>> problem it's much more difficult to solve it.
>>
>> On 17/01/2016 09:21, igal epshtein wrote:
>>
>> Hi Mauro,  
>>
>> I don't think it's related to maven build , but to some wrong jBehave's 
>> configuration on my side or some bug in impl on your side :)
>> The reason I'm saying that it's due to the fact that the same behaviour 
>> being reproduced while I'm running from intellij , without maven
>>
>>
>> <https://lh3.googleusercontent.com/-f0Un0qjBr9I/VptO8pV-0mI/AAAAAAAAV74/KKkfu1U8A9c/s1600/Screen%2BShot%2B2016-01-17%2Bat%2B10.18.08%2BAM.png>
>>
>>
>> On Wednesday, January 13, 2016 at 6:20:04 PM UTC+2, mauro.talevi wrote: 
>>>
>>> Hi,
>>>
>>> by default it should fail the build if you get failures.   How are you 
>>> running the Maven build?  
>>>
>>> Can you provide a runnable example of the maven build? 
>>>
>>> Thanks
>>>
>>> On 13/01/2016 08:07, igal epshtein wrote:
>>>
>>> Hi ,  
>>>
>>> Some times I've failed steps , but the in the end , I'm getting 
>>> "success" in maven execution (Build Success)
>>>
>>> Do I miss something in my configuration ?
>>>
>>> Thanks 
>>>
>>>
>>> _______________________________________________________________________________________
>>>
>>> Then confirmation message is shown with default data (FAILED)
>>> And the trade blotter shows next data : EURUSD Sell Base Spot (NOT 
>>> PERFORMED) 
>>> Maven output 
>>> [INFO] Reactor Summary:
>>> [INFO] AppiumClient ....................................... SUCCESS 
>>> [06:06 min]
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD SUCCESS
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 06:15 min
>>> [INFO] Finished at: 2016-01-13T08:31:25+02:00
>>> [INFO] Final Memory: 70M/416M
>>> [INFO] ------------------------ 
>>> ------------------------------------------------
>>> *The jbehave execution file*
>>>
>>> package appium.client.test_runners;import 
>>> appium.client.stepsImpl.LogInOut;import 
>>> appium.client.stepsImpl.common.Connectivity;import 
>>> appium.client.stepsImpl.common.Util;import 
>>> org.apache.commons.lang.StringUtils;import 
>>> org.jbehave.core.configuration.Configuration;import 
>>> org.jbehave.core.configuration.MostUsefulConfiguration;import 
>>> org.jbehave.core.embedder.Embedder;import 
>>> org.jbehave.core.embedder.StoryControls;import 
>>> org.jbehave.core.embedder.StoryTimeouts;import 
>>> org.jbehave.core.io.LoadFromClasspath;import 
>>> org.jbehave.core.junit.JUnitStories;import org.jbehave.core.model.*;import 
>>> org.jbehave.core.reporters.Format;import 
>>> org.jbehave.core.reporters.StoryReporter;import 
>>> org.jbehave.core.reporters.StoryReporterBuilder;import 
>>> org.jbehave.core.steps.InjectableStepsFactory;import 
>>> org.jbehave.core.steps.InstanceStepsFactory;import 
>>> org.jbehave.core.steps.ParameterConverters;import 
>>> util.PropertiesSingelton;import java.text.SimpleDateFormat;import 
>>> java.util.Arrays;import java.util.Date;import java.util.List;import 
>>> java.util.Map;public abstract class GenericScenario extends JUnitStories {
>>>     //set system time property in order to be appended to the log file    
>>> static {
>>>         SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy - 
>>> HH:mm:ss");        System.setProperty("systemDate" , dateFormat.format(new 
>>> Date()));    }
>>>
>>>     public GenericScenario(){
>>>         Embedder embedder = configuredEmbedder();        
>>> embedder.embedderControls().useStoryTimeouts(PropertiesSingelton.getInstance().getProperty("timeout"));
>>>         embedder.useTimeoutParsers(new MyParser());        
>>> embedder.configuration().useParameterConverters(
>>>                 configuration().parameterConverters().addConverters(
>>>                         new ParameterConverters.EnumConverter()));        
>>> //adding skip support        
>>> configuredEmbedder().useMetaFilters(Arrays.asList("-skip"));    }
>>>     public class MyParser implements StoryTimeouts.TimeoutParser{
>>>         public boolean isValid(String timeout) {
>>>             return timeout.matches("(\\d+)sec");        }
>>>
>>>         public long asSeconds(String timeout) {
>>>             return Long.parseLong(StringUtils.substringBefore(timeout, 
>>> "sec"));        }
>>>     }
>>>
>>>     @Override    public Configuration configuration(){
>>>         return new MostUsefulConfiguration().useStoryLoader(
>>>                     new LoadFromClasspath(this.getClass()))
>>>                 .useStoryReporterBuilder(storyReporter.withDefaultFormats()
>>>                         .withFormats(Format.TXT , Format.CONSOLE )
>>>                         .withReporters(new MyStoryReporter()))
>>>                 .useStoryControls(new 
>>> StoryControls().doSkipScenariosAfterFailure(true));    }
>>>
>>>
>>>     StoryReporterBuilder storyReporter = new StoryReporterBuilder() {
>>>         /**         * The builder is configured to build with the         * 
>>> StoryReporterBuilder.Format.STATS as default format. To change         * 
>>> the default formats the user can override the method:         */        
>>> @Override        public StoryReporterBuilder withDefaultFormats() {
>>>             return withFormats(Format.CONSOLE);        }
>>>     };    @Override    public InjectableStepsFactory stepsFactory(){
>>>         return new InstanceStepsFactory(configuration(), new Util() ,new 
>>> Connectivity(), new LogInOut());    }
>>>
>>>     @Override    protected abstract List<String> storyPaths();}
>>>
>>> -- You received this message because you are subscribed to the Google 
>>> Groups "JBehave User" group. To unsubscribe from this group and stop 
>>> receiving emails from it, send an email to 
>>> [email protected]. To post to this group, send email to 
>>> [email protected]. To view this discussion on the web, visit 
>>> https://groups.google.com/d/msgid/jbehave-user/0644dba2-357c-47e1-a0ac-e2d4f707da03%40googlegroups.com.
>>>  
>>> For more options, visit https://groups.google.com/d/optout. 
>>>
>>> -- You received this message because you are subscribed to the Google 
>> Groups "JBehave User" group. To unsubscribe from this group and stop 
>> receiving emails from it, send an email to 
>> [email protected]. To post to this group, send email to 
>> [email protected]. To view this discussion on the web, visit 
>> https://groups.google.com/d/msgid/jbehave-user/0a4819e2-49fb-43cf-bb87-4cdd03740bbc%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/jbehave-user/0a4819e2-49fb-43cf-bb87-4cdd03740bbc%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>  
>> For more options, visit https://groups.google.com/d/optout. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/00a9c857-53b2-4532-9419-5d61c6c60e9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to