Mobile/Fennec/Android/Testing: Difference between revisions

Jump to navigation Jump to search
Line 25: Line 25:
! Local command
! Local command
! Description
! Description
! More
|-
|-
| Robocop
| Robocop
Line 31: Line 32:
| <tt>./mach robocop</tt>
| <tt>./mach robocop</tt>
| On-device UI tests
| On-device UI tests
| [[#robocop UI tests|#]]
|-
|-
| JUnit4 tests
| JUnit4 tests
Line 37: Line 39:
| <tt>./mach gradle app:test</tt>
| <tt>./mach gradle app:test</tt>
| Java unit test suite
| Java unit test suite
| #
|-
|-
| integration
| integration
Line 43: Line 46:
| via IDE
| via IDE
| On-device integration tests
| On-device integration tests
| #
|}
|}


Line 59: Line 63:
| <tt>./mach gradle app:checkstyle</tt>
| <tt>./mach gradle app:checkstyle</tt>
| Reports style violation in Java code
| Reports style violation in Java code
| #
|-
|-
| Android Lint
| Android Lint
Line 65: Line 70:
| <tt>./mach gradle app:lint</tt>
| <tt>./mach gradle app:lint</tt>
| Detects common errors in Android code & resources
| Detects common errors in Android code & resources
| #
|-
|-
| eslint
| eslint
Line 71: Line 77:
| <tt>./mach eslint mobile/android</tt>
| <tt>./mach eslint mobile/android</tt>
| Checks for JS errors (e.g. syntax errors)
| Checks for JS errors (e.g. syntax errors)
| #
|}
|}


Line 76: Line 83:
* <b>TH</b> stands for Treeherder
* <b>TH</b> stands for Treeherder
* <b>Auto?</b> refers to jobs that run automatically on Treeherder when the associated files change
* <b>Auto?</b> refers to jobs that run automatically on Treeherder when the associated files change
* <b>More</b> links to more information regarding a test


== Test Environment ==
== Test Environment ==
Confirmed users
975

edits

Navigation menu