Code Monkey home page Code Monkey logo

Comments (7)

jeamland avatar jeamland commented on June 4, 2024

Do you get any kind of traceback or logging as to what was wrong with the junit xml?

from behave.

danclaudiupop avatar danclaudiupop commented on June 4, 2024

Yep, here it is:

Finished task 'Run tests'
26-Jun-2012 04:10:42 Starting task 'junit parser' of type 'com.atlassian.bamboo.plugins.testresultparser:task.testresultparser.junit'
26-Jun-2012 04:10:42 Parsing test results...
26-Jun-2012 04:10:43 Failed to parse test result file "TESTS-xxx.xml"
26-Jun-2012 04:10:43 Failed to parse test result file "TESTS-yyy.xml"
26-Jun-2012 04:10:43 Failed to parse test result file "TESTS-zzz.xml"
26-Jun-2012 04:10:43 Failing task since test cases were expected but none were found.
26-Jun-2012 04:10:43 Finished task 'junit parser'

from behave.

jenisys avatar jenisys commented on June 4, 2024

Is is still an issue?

I provided a XMLSchema file now that allows to validate the JUnit XML output against the schema file.
The XML schema is based on Hudson/Jenkins JUnit-4.xsd.

from behave.

jenisys avatar jenisys commented on June 4, 2024

No response after grace period. Therefore, I assume this is no longer an issue.

from behave.

tutuca avatar tutuca commented on June 4, 2024

I'm running the latest version of behave and this is still an issue.

What do we need to further debugging?
Can we reopen the bug report?

from behave.

jenisys avatar jenisys commented on June 4, 2024
  1. Check your XML reports against the XML-Schema that behaves uses (for example with xmllint).
    https://github.com/behave/behave/blob/master/etc/junit.xml/behave_junit.xsd
    => If you get invalid XML reports, I will fix it. But currently I am not aware of any problems.
  2. If behave complies w/ its schema, then the problem is in bamboo (at least w/ my current information).
    An example of the expected XML-Schema or an URL that is describes would be useful to better discuss the problem.

NOTES:
There exists no official JUnit XML schema.
The "junit4.xsd" file in same directory as above contains a hyperlink where it was retrieved from (Jenkins).
The "behave_junit.xsd" contains just minor changes.

from behave.

jenisys avatar jenisys commented on June 4, 2024

No answer => Close it again.

Can be reopened when more details are known.
Check for example if bamboo is trying to access information from the the testcase.@classname and tries to access the class, because @classname normally contains words with whitespace and cannot be used as real class name, etc.

from behave.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.