usultis / junit-expected-diff-plugin Goto Github PK
View Code? Open in Web Editor NEWJenkins JUnit Expected Diff Plugin
Jenkins JUnit Expected Diff Plugin
The diff is not showing for any of our test failures. We have turned the feature on for all builds. (It's a bit sad that it isn't just enabled for all builds automatically.)
I don't know if you're assuming a particular regex, but our failures look like this. The specifics of the spacing are probably wrong because I had to reformat to get GitHub to recognise it as preformatted text.
Error Message
Expected: is "Row 0\n ATXNewFromeDR: false\n BinaryPath: ../00/00/00/00000000.eml\n DocID: 00000000\n EDDFileMD5: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n EmbeddedFileCount: 1\n GroupID: 00000000\n ID: 1\n ImagePath: ../00/00/00/00.tif\n LastRasterErrorNumber: 0\n ObjectsEmbeddedIntoEmailBodyCount: 0\n Pages: 1\n"
but: was "Row 0\n ATXNewFromeDR: false\n BinaryPath: ../00/00/00/00000000.eml\n DocID: 00000000\n EDDFileMD5: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n EmbeddedFileCount: 1\n GroupID: 00000000\n ID: 1\n ImagePath: ../00/00/00/00.tif\n Pages: 1\n"
Stacktrace
junit.framework.AssertionFailedError:
Expected: is "Row 0\n ATXNewFromeDR: false\n BinaryPath: ../00/00/00/00000000.eml\n DocID: 00000000\n EDDFileMD5: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n EmbeddedFileCount: 1\n GroupID: 00000000\n ID: 1\n ImagePath: ../00/00/00/00.tif\n LastRasterErrorNumber: 0\n ObjectsEmbeddedIntoEmailBodyCount: 0\n Pages: 1\n"
but: was "Row 0\n ATXNewFromeDR: false\n BinaryPath: ../00/00/00/00000000.eml\n DocID: 00000000\n EDDFileMD5: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\n EmbeddedFileCount: 1\n GroupID: 00000000\n ID: 1\n ImagePath: ../00/00/00/00.tif\n Pages: 1\n"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at com.acme.util.mdb.AccessDatabaseAsserts.assertDatabaseContents(AccessDatabaseAsserts.java:158)
at com.acme.util.mdb.AccessDatabaseAsserts.assertDatabaseContents(AccessDatabaseAsserts.java:70)
at com.acme.integration.export.legal.TestDiscoveryRadarExport.testRunner(TestDiscoveryRadarExport.java:270)
[omitting rest of stack trace]
The visual diff feature is so useful that it should be a built-in feature of the Jenkins JUnit Plugin. As long as it is not the case, the possibility to install this plugin without having to manually build and upload it would be great.
@usultis what do you think? Are you interested to maintain your plugin?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.