Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate testing functions into a dedicated testing module #97

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

DevYeom
Copy link
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
2 checks passed
@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