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 Harness] Add test harness library #1392

Merged
merged 24 commits into from Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6661981
Test Harness initial commit
JoseAlcerreca Nov 10, 2022
2e7cdae
Add initial test harness implementation
alexvanyo Nov 10, 2022
62a906e
Adds unit tests
JoseAlcerreca Nov 17, 2022
01b04f0
Added Locale and font unit tests
JoseAlcerreca Nov 17, 2022
ad681b3
Improves unit tests, including API23 and robolectric
JoseAlcerreca Nov 18, 2022
80dbe7e
Spotless and cleanup
JoseAlcerreca Nov 18, 2022
6dc5f5c
Metalava regenerated
JoseAlcerreca Nov 18, 2022
a2117d3
Trying to fix inst tests by providing a noop Config annotation
JoseAlcerreca Nov 18, 2022
d2c7087
Add Robolectric + JaCoCo support
alexvanyo Nov 18, 2022
2d151d4
Add test harness issue template
alexvanyo Nov 21, 2022
06fc618
Add initial documentation draft
alexvanyo Nov 21, 2022
c24138e
Use test harness in pager tests
alexvanyo Nov 21, 2022
ffb84cd
Use test harness in adaptive tests
alexvanyo Nov 21, 2022
a8ba4e8
Fix formatting for pager tests
alexvanyo Nov 21, 2022
bef9c21
Adjust size overriding to ensure requested size is available
alexvanyo Nov 21, 2022
28874d6
Increase tolerance for TwoPane tests to 1 pixel
alexvanyo Nov 21, 2022
ccb8496
Fix parameter table in test harness docs
alexvanyo Nov 21, 2022
cb830e2
Remove ratio is at least 1 check
alexvanyo Nov 21, 2022
cfeeb04
Spotless
JoseAlcerreca Nov 22, 2022
9067dc5
Adds test harness sample
JoseAlcerreca Nov 22, 2022
398a371
spotless
JoseAlcerreca Nov 22, 2022
cbdd45e
Adds locale to test harness sample
JoseAlcerreca Nov 22, 2022
40ea604
Add layoutlib limitation to docs
alexvanyo Nov 22, 2022
5adcbc5
Add stringResource test for testharness
alexvanyo Nov 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/testharness-bug-report.md
@@ -0,0 +1,16 @@
---
name: Test harness bug report
about: Create a report about test harness
title: "[Test Harness]"
labels: testharness
assignees: alexvanyo

---

**Description**

**Steps to reproduce**

**Expected behavior**

**Additional context**
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -67,6 +67,9 @@ A wrapper around WebView for basic WebView support in Jetpack Compose.
### 📜 [Adaptive](./adaptive/)
A library providing a collection of utilities for adaptive layouts.

### 📜 [Test Harness](./testharness/)
Utilities for testing Compose layouts.

### 📐 [Insets](./insets/) (Deprecated)
See our [Migration Guide](https://google.github.io/accompanist/insets/) for migrating to Insets in Compose.

Expand Down
3 changes: 3 additions & 0 deletions adaptive/build.gradle
Expand Up @@ -96,6 +96,9 @@ dependencies {
androidTestImplementation project(':internal-testutils')
testImplementation project(':internal-testutils')

androidTestImplementation project(':testharness')
testImplementation project(':testharness')

androidTestImplementation libs.junit
testImplementation libs.junit

Expand Down