2a637cf9b0f2c2ebaf573a1f478e31dc1e6a8354 |
22-Jun-2017 |
Paul Duffin <paulduffin@google.com> |
Ensure that android.test tests pass It looks as though the tests in test-runner/tests have not actually been run successfully for over 7 years. As a result they have degraded. This change fixes the tests so that they will pass and provides instructions on how to run them. TestCaseUtilTest.testGetTestCaseNamesForTestSuiteWithSuiteMethod This fails because it expected 2 names to be returned but only returns 0. The reason for that is although TwoTestsInTestSuite has a Test suite() method that does create a TestSuite with two tests the TestCaseUtil method does not actually call suite(). Instead, because TwoTestsInTestSuite is a TestSuite it just calls the tests() method on it which returns an empty Enumeration because TwoTestsInTestSuite is empty. The support for "static Test suite() {}" is broken but fixing this will affect the behavior of InstrumentationTestRunner which is used in thousands of different places both in and outside Google and so could cause untold problems. TestSuiteBuilderTest.testIncludeAllPackagesUnderHere Reformat the list, one per line and then add missing name "testPublicConstructor". ErrorTest/FailingTest These tests are not meant to be run on their own, only as part of a separate test. The RunAsPartOfSeparateTest annotation was added to allow these to be excluded using notAnnotation as shown in the instructions for running the tests. Bug: 30188076 Test: followed new instructions in test-runner/tests/Android.mk Change-Id: I60e7bee9cd08a9ab7777a2578fc58da772de5c1f
rror/ErrorTest.java
rror/FailingTest.java
rror/RunAsPartOfSeparateTest.java
|
bb469fe3da7e6d17e851a95026a9eea905c52daa |
24-Apr-2010 |
Brett Chabot <brettchabot@android.com> |
Add test runner log when test case class is not loaded. The test runner will only load TestCase classes that have a public constructor with either no params or a single String parameter. This is fairly subtle behavior and can be difficult to catch. This change adds a log message when a TestCase class is not loaded, and adds some associated unit tests. Change-Id: I6fc63e4179c949620f5773e0ae134f99905a6fb2
onstructor/NoPublicConstructorTest.java
onstructor/ProtectedConstructorTest.java
onstructor/PublicConstructorTest.java
|
e70f61b1160e953e5e4d18d30a463fa9ba821779 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Retry test-runner tests move. This time change the frameworks makefile so it only includes test-runner/src in the public API.
uterTest.java
rror/ErrorTest.java
rror/FailingTest.java
nstrumentation/InstrumentationTest.java
ested/Level1Test.java
ested/nested/Level2Test.java
imple/AnotherSimpleTest.java
imple/SimpleTest.java
moke/NonSmokeTest.java
moke/SmokeTest.java
ubclass/SubclassTest.java
ubclass/SuperclassTest.java
uppress/PartiallySuppressedTest.java
uppress/SuppressedTest.java
|
c1ca8c51c616d1517b18bf24feaa9f8f1430c835 |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Revert "Move framework test-runner unit tests to be closer to their source." This reverts commit 12093976a4842a795491cfd2b1d3b71e18503f2d.
uterTest.java
rror/ErrorTest.java
rror/FailingTest.java
nstrumentation/InstrumentationTest.java
ested/Level1Test.java
ested/nested/Level2Test.java
imple/AnotherSimpleTest.java
imple/SimpleTest.java
moke/NonSmokeTest.java
moke/SmokeTest.java
ubclass/SubclassTest.java
ubclass/SuperclassTest.java
uppress/PartiallySuppressedTest.java
uppress/SuppressedTest.java
|
12093976a4842a795491cfd2b1d3b71e18503f2d |
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Move framework test-runner unit tests to be closer to their source. Move the test-runner source into a separate src folder to accommodate the test move.
uterTest.java
rror/ErrorTest.java
rror/FailingTest.java
nstrumentation/InstrumentationTest.java
ested/Level1Test.java
ested/nested/Level2Test.java
imple/AnotherSimpleTest.java
imple/SimpleTest.java
moke/NonSmokeTest.java
moke/SmokeTest.java
ubclass/SubclassTest.java
ubclass/SuperclassTest.java
uppress/PartiallySuppressedTest.java
uppress/SuppressedTest.java
|