Latest 0.0.1
Homepage https://github.com/Kuniwak/MemoryLeakTestKit
License MIT
Platforms ios 8.0, osx 10.9, watchos 2.0, tvos 9.0
Frameworks Foundation
Authors

Swift 4.2 compatible
CocoaPods
Carthage
Swift Package Manager
MIT license

A testing library to detect memory leaks for Swift.

This library is under development.

Supported Platforms

Platform Build Status
Linux CircleCI
iOS Build Status

Usage

import MemoryLeakTestKit

let memoryLeaks = detectLeaks {
    // Create a instance
    return target
}

XCTAssertTrue(
    memoryLeaks.leakedObjects.isEmpty,
    memoryLeaks.prettyDescription
)

Example output

Summary:
    Found 2 leaked objects

Leaked objects:
    0:
        Description: Node
        Type: Node
        Location: (root).linkedNodes[0]
        Circular Paths: 
            self.linkedNodes[1] === self

    1:
        Description: Node
        Type: Node
        Location: (root)
        Circular Paths: 
            self.linkedNodes[0].linkedNodes[0] === self

License

MIT

Latest podspec

{
    "name": "MemoryLeakTestKit",
    "version": "0.0.1",
    "summary": "A testing library to detect memory leaks for Swift.",
    "description": "A testing library to detect memory leaks for Swift. This library can report many information such as leaked object's type/string representation/location/circular reference paths.",
    "homepage": "https://github.com/Kuniwak/MemoryLeakTestKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "8.0",
        "osx": "10.9",
        "watchos": "2.0",
        "tvos": "9.0"
    },
    "authors": {
        "Kuniwak": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Kuniwak/MemoryLeakTestKit.git",
        "tag": "0.0.1"
    },
    "source_files": "Sources/**/*.swift",
    "exclude_files": "Sources/**/*.gyb",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This