WIP: test cases

This commit is contained in:
John Rommel Estropia
2016-05-23 23:40:00 +09:00
parent 77236d66d5
commit 000a357808
5 changed files with 277 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
//
// BaseTestCase.swift
// CoreStore
//
// Created by John Rommel Estropia on 2016/05/08.
// Copyright © 2016 John Rommel Estropia. All rights reserved.
//
import XCTest
@testable
import CoreStore
// MARK: - BaseTestCase
class BaseTestCase: XCTestCase {
// MARK: XCTestCase
override func setUp() {
super.setUp()
self.deleteStores()
}
override func tearDown() {
self.deleteStores()
super.tearDown()
}
// MARK: Private
private func deleteStores() {
_ = try? NSFileManager.defaultManager().removeItemAtURL(SQLiteStore.defaultRootDirectory)
}
}