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

re-enable Android CI #86

Open
tayloraswift opened this issue Jan 16, 2025 · 2 comments
Open

re-enable Android CI #86

tayloraswift opened this issue Jan 16, 2025 · 2 comments

Comments

@tayloraswift
Copy link
Owner

it looks like Swift Testing is not working with Android:

/home/runner/work/swift-png/swift-png/Sources/LZ77Tests/Bitstreams.swift:4:8: error: no such module 'Testing'
  2 | @testable
  3 | import LZ77
  4 | import Testing
    |        `- error: no such module 'Testing'
  5 | 
  6 | @Suite

this is happening even though run-tests: false is specified in the workflow.

@marcprux any idea what’s going on here?

@marcprux
Copy link
Contributor

Should set build-tests: false. The Testing module is not yet available for Android … it is WIP.

@marcprux
Copy link
Contributor

Also, you can guard for it in a future-proof way in your tests with:

#if canImport(Testing)
import Testing

@Suite

#endif

That way, once Testing is available for Android, it will just fall into place.

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

No branches or pull requests

2 participants