Skip to content

Commit

Permalink
Add fuelOutMismatch:, for the moment all failures are exported to disk.
Browse files Browse the repository at this point in the history
My intention is to understand a Bloc render test that only fails in CI.
  • Loading branch information
tinchodias committed Jul 25, 2023
1 parent 913cc03 commit 8bc0a4f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Alexandrie-Base-Tests/AePixelMatchTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ AePixelMatchTest >> formSelector: aSymbol [
formSelector := aSymbol
]

{ #category : #tests }
AePixelMatchTest >> fuelOutMismatch: aPixelComparison [

aPixelComparison
serializeToFileNamed: ('pixel_mismatch_{1}_{2}_{3}.fuel'
format: {
Time primMillisecondClock printStringHex.
self className.
formSelector })
]

{ #category : #private }
AePixelMatchTest >> instanceVariablesToKeep [

Expand Down Expand Up @@ -196,6 +207,10 @@ AePixelMatchTest >> testFormSelector [

| aPixelComparison |
aPixelComparison := self newPixelComparison.

aPixelComparison isMatch ifFalse: [
self fuelOutMismatch: aPixelComparison ].

self
assert: aPixelComparison isMatch
description: 'Pixel mismatch: #', formSelector.
Expand Down

0 comments on commit 8bc0a4f

Please sign in to comment.