Skip to content

Separate testing functions into a dedicated testing module#97

Merged
DevYeom merged 1 commit into
mainfrom
divide-testing-module
Sep 23, 2024
Merged

Separate testing functions into a dedicated testing module#97
DevYeom merged 1 commit into
mainfrom
divide-testing-module

Conversation

@DevYeom
Copy link
Copy Markdown
Owner

@DevYeom DevYeom commented Sep 23, 2024

Related Issues 💭

Description 📝

  • Testing helper functions were separated into a dedicated testing module to prevent build errors during app builds, ensuring they are only available when running tests.

Additional Notes 📚

  • When using Testing
@Test
func incrementTwice() async {
    await sut.send(.increment)
    await sut.send(.increment)

    await sut.expect(\.count, 2)
}
  • When using XCTest
func test_incrementTwice() async {
    await sut.send(.increment)
    await sut.send(.increment)

    await sut.expect(\.count, 2)
}

Checklist ✅

  • If it's a new feature, have appropriate unit tests been added?
  • If the changes affect existing functionality, please verify whether the above information has been appropriately described.

@DevYeom DevYeom self-assigned this Sep 23, 2024
@DevYeom DevYeom force-pushed the divide-testing-module branch from 218f326 to 1cfa243 Compare September 23, 2024 12:27
@DevYeom DevYeom force-pushed the divide-testing-module branch from 1cfa243 to 6795dda Compare September 23, 2024 12:29
@DevYeom DevYeom merged commit 2ba406b into main Sep 23, 2024
@DevYeom DevYeom deleted the divide-testing-module branch September 23, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant