Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML generation tests don't work on Travis #72

Closed
TWiStErRob opened this issue Feb 22, 2019 · 1 comment · Fixed by #110
Closed

XML generation tests don't work on Travis #72

TWiStErRob opened this issue Feb 22, 2019 · 1 comment · Fixed by #110
Labels
a:bug something isn't working as expected in:test test module and project tests
Milestone

Comments

@TWiStErRob
Copy link
Owner

net.twisterrob.gradle.quality.report.html.ViolationsRendererTest > renderXml writes preamble() FAILURE
java.lang.AssertionError: Expected <<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet type="text/xsl" href="some/path/to.xsl"?><violations project=""></violations>>, actual <>.
	at net.twisterrob.gradle.quality.report.html.ViolationsRendererTest.renderXml writes preamble(ViolationsRendererTest.kt:18)
net.twisterrob.gradle.quality.report.html.ViolationsRendererTest > renderXml writes preamble without stylesheet() FAILURE
java.lang.AssertionError: Expected <<?xml version="1.0" encoding="utf-8"?><violations project=""></violations>>, actual <>.
	at net.twisterrob.gradle.quality.report.html.ViolationsRendererTest.renderXml writes preamble without stylesheet(ViolationsRendererTest.kt:32)
net.twisterrob.gradle.quality.report.html.ViolationsRendererTest > renderXml writes project name on root() FAILURE
java.lang.AssertionError: Expected <<?xml version="1.0" encoding="utf-8"?><violations project="project name"></violations>>, actual <>.
	at net.twisterrob.gradle.quality.report.html.ViolationsRendererTest.renderXml writes project name on root(ViolationsRendererTest.kt:45)
@TWiStErRob TWiStErRob added a:bug something isn't working as expected in:test test module and project tests labels Feb 22, 2019
@TWiStErRob
Copy link
Owner Author

TWiStErRob commented Feb 22, 2019

The used XMLStreamWriter on Travis is com.sun.xml.internal.stream.writers.XMLStreamWriterImpl, confirmed with:

@Test fun `xmlWriter impl`() {
	val writer = StringWriter().xmlWriter()
	throw Exception(writer::class.toString() + ": " + writer.toString())
}

local run shows com.sun.xml.internal.stream.writers.XMLStreamWriterImpl too.

TWiStErRob added a commit that referenced this issue May 13, 2021
TWiStErRob added a commit that referenced this issue May 16, 2021
* Play around with GitHub actions
* Migrate Travis to GitHub actions
* Add CI badge
* Fix #72 by using GitHub actions
* Reduce flakyness of "huge" test.
* Add a few timeouts to prevent stuck CI
* Update missing entries in changelog.
@TWiStErRob TWiStErRob added this to the v0.11 milestone May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug something isn't working as expected in:test test module and project tests
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant