mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Specify what kind of test failed
This commit is contained in:
parent
9c2c320c01
commit
6ea8fb9335
@ -20,13 +20,13 @@ class MacawSVGTests: XCTestCase {
|
|||||||
private let testFolderName = "MacawTestOutputData"
|
private let testFolderName = "MacawTestOutputData"
|
||||||
private let shouldComparePNGImages = true
|
private let shouldComparePNGImages = true
|
||||||
private let multipleTestsWillRun = false
|
private let multipleTestsWillRun = false
|
||||||
private let shouldSaveFaildedTestImage = false
|
private let shouldSaveFailedTestImage = false
|
||||||
|
|
||||||
override func setUp() {
|
override func setUp() {
|
||||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||||
super.setUp()
|
super.setUp()
|
||||||
|
|
||||||
if shouldSaveFaildedTestImage {
|
if shouldSaveFailedTestImage {
|
||||||
setupTestFolderDirectory()
|
setupTestFolderDirectory()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -273,9 +273,9 @@ class MacawSVGTests: XCTestCase {
|
|||||||
|
|
||||||
if referenceContentData != nodeContentData {
|
if referenceContentData != nodeContentData {
|
||||||
|
|
||||||
var failInfo = "referenceContentData is not equal to nodeContentData"
|
var failInfo = "referenceImageData is not equal to nodeImageData"
|
||||||
|
|
||||||
if shouldSaveFaildedTestImage {
|
if shouldSaveFailedTestImage {
|
||||||
let _ = saveImage(image: referenceImage, fileName: referenceFile + "_reference")
|
let _ = saveImage(image: referenceImage, fileName: referenceFile + "_reference")
|
||||||
let _ = saveImage(image: nodeImage, fileName: referenceFile + "_incorrect")
|
let _ = saveImage(image: nodeImage, fileName: referenceFile + "_incorrect")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user