composer
composer copied to clipboard
Bump junitparser from 3.1.2 to 4.0.2
Bumps junitparser from 3.1.2 to 4.0.2.
Changelog
Sourced from junitparser's changelog.
[4.0.2] - 2025-06-23
Fixed
write_xml- now supportsPathfrompathlib.[4.0.1] - 2025-06-23
Fixed
write_xml- Remove encoding kwarg to fixbinary mode doesn't take an encoding argument[4.0.0] - 2025-06-22
Breaking
Renamed argument
filepathof methodswrite_xml,TestSuite.write, andJUnitXml.writetofile_or_filename, as these methods now support file objects and file-like objects.Turned positional argument
prettyof methodswrite_xml,TestSuite.write, andJUnitXml.writeinto keyword argument. Use aswrite_xml(obj, filename, pretty=True)andobj.write(filename, pretty=True), respectively.Removed argument
to_consolefrom methodswrite_xml,TestSuite.write, andJUnitXml.write. Instead, usewrite_xml(obj, sys.stdout)andobj.write(sys.stdout), respectively.Renamed argument
filepathof methodJUnitXml.fromfiletofile, to reflect that this method supports file objects, file-like objects, and urls.Setter method
TestCase.resultused to ignore values of invalid types. This method now throws aValueErrorinstead.Method
xunit2.TestCase.add_rerun_resulthas been renamed toadd_interim_resultresult to better reflect class hierarchy of interim (rerun and flaky) results.Methods
JUnitXml.fromfile,JUnitXml.fromstring,JUnitXml.fromrootalways return aJUnitXmlinstance. Earlier versions return aTestSuiteinstance when the root of the file / string / element is a<TestSuite>. AJUnitXmlinstance has already been returned by earlier versions when the root of the file / string / element is a<TestSuites>.If you want to create a
TestSuiteinstance from a<TestSuite>element, use
TestSuite.fromelem(elem)
Commits
5bdff46implement #1695431c31Fix: Remove encoding from wb open (#168)7e2fe2dskip a test0732f45release 4.0.02e3b756MakeJUnitXml.from*methods return onlyJUnitXmlinstances (#142)b72d403Migrate to setuptools build backend (#156)3e14d22Remove ubuntu 20.04 from CI, losses test coverage for Python 3.6 an 3.7 (#161)f31c7a7Enable inheritance (#162)a96a51fUpdate sphinx requirement from ~=8.1 to ~=7.4 (#164)d069fa5Fix CI badge in README.rst (#163)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)