Skip to content

Add a few missing tests #1539

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

Merged
merged 6 commits into from
Oct 21, 2022
Merged

Add a few missing tests #1539

merged 6 commits into from
Oct 21, 2022

Conversation

mbrandonw
Copy link
Member

While looking at code coverage reports I noticed we had a few missing tests, so just filling some of that in. There's more that could be done.

}

#if os(macOS)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this was marked as macOS only... seems to work fine on iOS.

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice finds!

An "EffectTask.task" returned from \
"ComposableArchitectureTests/EffectFailureTests.swift:\(line+1)" threw an unhandled \
error. …
An "EffectTask.task" returned from "\(#fileID):\(line+1)" threw an unhandled error. …
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pushed a small update to make some of our test failure tests a bit more resilient by using #fileID instead of hard coding the file name. This makes it so that if we rename the file it does not break tests.

@mbrandonw mbrandonw merged commit 2ea76a2 into main Oct 21, 2022
@mbrandonw mbrandonw deleted the missing-tests branch October 21, 2022 23:15
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.

2 participants