Skip to content

factorcat/lib-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

let TestList = "Array Bundle CoreGraphics Point Color Dates Dictionary Network Object Range Set String SwiftGuard SwiftIfCase Translate View" // base
        + " AD CrashReport InApp Updater" // additional
        + " TableSections" // controllers
        + " TextLines" // lib-second
        + " LetraShape" // workings


import UIKit
class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()

        let result = UnitTest.run(only:
            TestList
            .split(by: .space).map{ x in "Test\(x)"})
        if result.failed > 0 {
            self.view.backgroundColor = .rgb255(215,50,50)
        } else if result.passed > 0 {
            self.view.backgroundColor = .rgb255(0,155,0)
        }
    }
}
Started
......................................................................................................................................................................................................................................................
Finished in 0.0246 seconds.
81 tests, 246 assertions, 0 failures, 0 errors

Releases

No releases published

Packages

No packages published

Languages