45b3ffb2d3d0c310718926c1acc69f5bf946ee3f |
|
23-Mar-2016 |
Paul Duffin <paulduffin@google.com> |
Improve the test coverage for vogar.target package It removes a number of tests that test internal behaviour of the TestRunner and replaces them with more comprehensive higher level tests that are going to be more stable during refactoring. The new tests are needed in preparation for moving from vogar's custom implementation of JUnit to standard JUnit which will improve consistency between vogar and CTS tests and will also allow us to make use of JUnit4 capabilities. The process of testing was: 1) Run coverage. 2) Remove old test and add new test. 3) Check coverage to ensure was at least the same. 4) Repeat until old tests were removed. After that the coverage report directed which code needed more testing and additional tests were added to cover that. The only changes made to src/ directory is to remove some usages of @VisibleForTesting annotations from and restrict the access to those members that are no longer required for testing. Bug: 27940141 Change-Id: I1f215f4a19213a775cc609990eb15224a6a04f5b
/external/vogar/test/vogar/target/junit4/ParameterizedTest.java
|
ec87632c66b964e58a87d7d77fa154326113a027 |
|
16-Apr-2013 |
kroot@google.com <kroot@google.com@aa685c63-decc-881d-cd2b-7fa72aad72e1> |
Add basic JUnit4 support This adds basic support for JUnit4 test cases. It can do all the basic assertions and also supports the "RunWith" annotation with the "Parameterized" and "Suite" runners. It doesn't properly implement BeforeClass and AfterClass yet. Instead it runs those once for each test. This can be improved in the future, but should run correctly until then. This was written without looking at the JUnit source code so it may have compatibility bugs. git-svn-id: http://vogar.googlecode.com/svn/trunk@290 aa685c63-decc-881d-cd2b-7fa72aad72e1
/external/vogar/test/vogar/target/junit4/ParameterizedTest.java
|