Book a Demo

Author Topic: How to record python test results  (Read 4087 times)

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
How to record python test results
« on: June 17, 2007, 01:14:03 am »
Hello,

I am coding in Python. When using PyUnit, I would like to import my test results like I would do with JUnit and NUnit. All my python testCases are reverse engineered and inside the package diagram, it even shows the unittest in the list of tests. The tests run using the test script feature.
But I don't get any results back to my TestCases in EA.
Is it because only test results from JUnit and NUnit are indentified by EA ?

Regards
Bernd
« Last Edit: June 17, 2007, 10:16:23 am by BerndWill »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to record python test results
« Reply #1 on: June 17, 2007, 01:11:32 pm »
Sorry, but there is no handling of PyUnit in EA.  You could see if the output for PyUnit is compatible with either JUnit or NUnit.

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
Re: How to record python test results
« Reply #2 on: June 18, 2007, 01:07:51 am »
Since PyUnit, JUnit and NUnit are language specific implementations of the same unittest philosophy, there should be a chance to make it language independent. The output of my python unittest is shown in the output panel.

As far as I see the results, all unittest packages return the same results: Either "..." for positive Tests or filenames and line numbers in case of errors.

Is there a chance to create an own parser and add it to the list ?

Regards
Bernd
« Last Edit: June 18, 2007, 01:17:28 am by BerndWill »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to record python test results
« Reply #3 on: June 18, 2007, 01:25:33 pm »
We haven't currently exposed any interface to provide custom parsing tools.

The difficulty in making it language independent is that even though they are implementations of the same thing, the actual output differs.

The best I can suggest is to send in a feature request (preferably with some sample PyUnit output).

ebeb

  • EA User
  • **
  • Posts: 169
  • Karma: +0/-0
    • View Profile
Re: How to record python test results
« Reply #4 on: November 23, 2009, 07:12:36 pm »
Sorry for waking up this old thread, but I have the same question. Is there any progress in python testing (Supporting PyTest) during the last 2 1/2 years? It's still not listed. Or is there any descision not to support it at all?

Or has there recently any api been added that allows custom testing frameworks to be used?

-Jan