Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

#562 closed defect (fixed)

Bitten fails with an internal error parsing py.test --junitxml output

Reported by: Torsten Landschoff <torsten.landschoff@…> Owned by: hodgestar
Priority: major Milestone: 0.6
Component: Recipe commands Version: dev
Keywords: java:junit Cc:
Operating System: Linux

Description

Dear Bitten team,

We are using (or actually still discussing to use) Bitten for continuous integration of a python project. That project is using py.test for its unit tests.

I tried to feed the output of the junitxml plugin into bitten. Unfortunately, this gives an internal error in Bitten if py.test fails to collect its tests.

This can happen if a module can not be loaded etc. and is indeed a test failure. However, I'd rather have it reported as such.

I created a patch to fix this issue and would be glad if it could be merged into bitten proper.

Another problem is that expected failures (xfail) are marked as genuine failures but displayed as skipped. I will have to look into that as well.

Greetings, Torsten

Attachments (1)

pytest_junitxml.diff (5.3 KB) - added by Torsten Landschoff <torsten.landschoff@…> 11 years ago.
Patch for py.test failure including unit test

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Torsten Landschoff <torsten.landschoff@…>

Patch for py.test failure including unit test

comment:1 Changed 11 years ago by hodgestar

  • Owner set to hodgestar
  • Status changed from new to assigned

comment:2 Changed 11 years ago by hodgestar

  • Resolution set to fixed
  • Status changed from assigned to closed

Thanks for the patch! Commit with minor additions in r819 and backported to 0.6.x in r820.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain hodgestar.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.