Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.08 KB

File metadata and controls

26 lines (22 loc) · 1.08 KB

CodeWarsTesting

A simple application for getting to know XCTest

Task:

It is necessary to solve the problem(https://www.codewars.com/kata/57ea70aa5500adfe8a000110/swift) and cover it with unit, integration, e2e tests

Unit tests are located in the file "CodeWarsTestingTests/CodeWarsUnitTests":

  • testWhenInputIsEmptyArray
  • testWhenInputIsNegativeAndPositiveNumbers
  • testWhenInputIsTimesEqualZero
  • testWhenInputArrayModified

Integration tests are located in the file "CodeWarsTestingTests/CoreDataIntegrationTests":

CoreDataTestStack is a class for secure testing of CoreData. Allows you to separate real data in the database and data for testing.

  • testWhenCreateEntityResult
  • testWhenUpdateEntityResult
  • testtestWhenDeleteLastEntityResult

E2e tests are located in the file "CodeWarsTestingUITests/CodeWarsTestingUITests":

  • testButtonGo