junit2html | Turn Junit XML reports into self contained HTML reports | Dashboard library
kandi X-RAY | junit2html Summary
kandi X-RAY | junit2html Summary
Junit is a widely used java test framework, it happens to produce a fairly generic formatted test report and many non-java things produce the same files (eg py.test) or can be converted quite easily to junit xml (cunit reports via xslt). The report files are understood by many things like Jenkins and various IDEs. The format of junit files is described here:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start the application
- Parse input files
- Returns a list of all failed tests
- List of skipped suites
- Add a report to the report
- Adds a case result
- True if this job has failed
- Return the outcome of the test
- Generate a JUnit element
- Unicode string
- Make an etree element from a string
- Generate a summary of the matrix tests
- Return the short outcome of the given outcome
- Combine results
- Returns a list of all test tests
- Returns all tests skipped
- Process the results XML
- Clean an attribute from an XML element
- Add a report to the report matrix
- Return HTML report as a string
- Generate a test suite element
- Return a list of all testcases
- Returns all tests that have failed
- The prefix of the test
- Return the result list for a given class
junit2html Key Features
junit2html Examples and Code Snippets
Community Discussions
Trending Discussions on junit2html
QUESTION
I have a job in my pipeline that has a script with two very important steps:
mvn test
to run JUnit tests against my codejunit2html
to convert the XML result of the tests to a HTML format (only possible way to see the results as my pipelines aren't done through MRs) that is uploaded to GitLab as an artifactdocker rm
to destroy a container created earlier in the pipeline
My problem is that when my tests fail, the script stops immediately at mvn test
, so the junit2html
step is never reached, meaning the test results are never uploaded in the event of failure, and docker rm
is never executed either, so the container remains and messes up subsequent pipelines as a result.
What I want is to be able to keep a job going till the end even if the script fails at some point. Basically, the job should still count as failed in GitLab CI / CD, but its entire script should be executed. How can I configure this?
...ANSWER
Answered 2019-Dec-05 at 17:51In each step that you need to continue even if the step fails, you can add a flag to your .gitlab-ci.yml
file in that step. For example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install junit2html
You can use junit2html like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page