thanks all will write some dummy test cases. regards irfan
On Mon, May 19, 2014 at 6:24 PM, Mike Bayliss <[email protected]>wrote: > You could write a dummy file that just describes each test as skipped. > That way your dummy results are actually accurate and won't mislead when > compared againt other runs. > > Mike > > > On Mon, May 19, 2014 at 1:18 PM, Mark Waite <[email protected]>wrote: > >> You could search for a plugin which allows post-build actions to be >> conditional. I'm not aware of such a plugin, but there may be one. >> >> You could modify the Jenkins code and maintain it as your own "fork". >> >> Both those options sound more complicated than assuring that your build >> always writes at least one test result. >> >> I agree with the Jenkins definition that if you define the job to show >> test results and there are no current test results, the job should fail. I >> think that absence of expected test results is a worse failure mode than >> the failure of a few tests within a set of tests. >> >> Mark Waite >> >> >> On Mon, May 19, 2014 at 5:10 AM, Irfan Sayed <[email protected]>wrote: >> >>> thanks. >>> but i don't have any single unit test OR i don't want to fire any unit >>> tests for specific build instance. >>> >>> further, dummy file will again have some unit test result which will in >>> against of real test cases so this might be confusing >>> is there any other option ? >>> >>> regards >>> >>> >>> >>> On Mon, May 19, 2014 at 4:27 PM, Mark Waite >>> <[email protected]>wrote: >>> >>>> You could write a unit test result file with a single test that >>>> represents the success or failure of your build. >>>> >>>> That dummy file would satisfy the requirement for a unit test result >>>> without requiring special case logic in the job definition. >>>> >>>> Mark Waite >>>> On May 18, 2014 10:10 PM, "Irfan Sayed" <[email protected]> wrote: >>>> >>>>> hi, >>>>> >>>>> if we add "publish junit results" as post build action in job and if >>>>> there are no junit test results to be displayed for any specific instance >>>>> of build then , build gets marked as failed >>>>> >>>>> this is sometime problematic , if we skip to execute the unit test >>>>> cases for any particular instance of build then unnecessary build gets >>>>> marked failed >>>>> >>>>> is there any way to change the behavior.?? i don't want to mark build >>>>> as failed if no junit results are to be displayed. >>>>> >>>>> As junit code base is now part of core jenkins , i cant download the >>>>> plugin and modify the codebase >>>>> >>>>> please suggest >>>>> >>>>> regards, >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Jenkins Users" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Jenkins Users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Jenkins Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Thanks! >> Mark Waite >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
