Text mit fett.
" - let expected = "Text mit fett." - - XCTAssertEqual(html.stripHTMLSimple, expected) - } - - func testStripHTMLSimple_HTMLEntities() { - let html = "Text mit Leerzeichen, & Zeichen und "Anführungszeichen".
" - let expected = "Text mit Leerzeichen, & Zeichen und \"Anführungszeichen\"." - - XCTAssertEqual(html.stripHTMLSimple, expected) - } - - func testStripHTMLSimple_MoreEntities() { - let html = "<Tag> und 'Apostroph'
" - let expected = "Absatz mit kursiv und fett.
Text mit Whitespace
" - let expected = "Text mit Whitespace" - - XCTAssertEqual(html.stripHTMLSimple, expected) - } - - // MARK: - Performance Tests - - func testStripHTML_Performance() { - let largeHTML = String(repeating: "Dies ist ein Test mit vielen HTML Tags.
", count: 1000) - - measure { - _ = largeHTML.stripHTML - } - } - - func testStripHTMLSimple_Performance() { - let largeHTML = String(repeating: "Dies ist ein Test mit vielen HTML Tags.
", count: 1000) - - measure { - _ = largeHTML.stripHTMLSimple - } - } - // MARK: - Edge Cases func testStripHTML_MalformedHTML() { diff --git a/readeckUITests/readeckUITests.swift b/readeckUITests/readeckUITests.swift index f8c0422..0df2b42 100644 --- a/readeckUITests/readeckUITests.swift +++ b/readeckUITests/readeckUITests.swift @@ -6,7 +6,6 @@ // import XCTest -import SnapshotHelper final class readeckUITests: XCTestCase { @@ -16,7 +15,7 @@ final class readeckUITests: XCTestCase { // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false - // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + // In UI tests it's important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDownWithError() throws { @@ -27,9 +26,7 @@ final class readeckUITests: XCTestCase { func testExample() throws { // UI tests must launch the application that they test. let app = XCUIApplication() - setupSnapshot(app) app.launch() - snapshot("01LaunchScreen") // Use XCTAssert and related functions to verify your tests produce the correct results. }