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

test: fix tests for lower API levels #145

Open
wants to merge 58 commits into
base: test/active-session
Choose a base branch
from

Conversation

matthiasemde
Copy link
Owner

@matthiasemde matthiasemde commented Dec 15, 2024

This PR fixes issues for instrumented tests with lower API versions or disables them if no fix is available.

For disabling tests, a combination of decorator and rule are used like this:

class LibraryFolderDaoTest {
  @get:Rule(order = 0)
  val minApiVersionRule = MinApiVersionRule()
  
  @Test
  @MinApiVersion(28)
  fun insertFolder() {}
}

Helpful links

This includes disabling certain tests for lower api levels as they include special type of mockk objects which do not work < API 28
@matthiasemde matthiasemde requested a review from mipro98 December 15, 2024 16:43
@matthiasemde
Copy link
Owner Author

@matthiasemde matthiasemde force-pushed the test/fix-tests-for-lower-api-levels branch from 4f245ef to 4f95624 Compare December 30, 2024 14:57
@matthiasemde matthiasemde added skip-ci Skip the CI build in a PR and removed skip-ci Skip the CI build in a PR labels Dec 30, 2024
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