Releases: google/compile-testing
Releases · google/compile-testing
0.21.0
- Fixed a bug: When comparing ASTs, for example in
JavaFileObjectSubject.hasSourceEquivalentTo
, some kinds of nodes were omitted from the comparison. In particular, if the expected code had an annotated type or a union type (multicatch), the actual code could contain anything at that point and the test would still pass. This was also true for post-Java-8 constructs like module declarations,yield
statements, and the like. These omissions have been corrected. Some tests may now fail if the expected and actual source do not match, in ways that were hidden by this bug. (9a592f7)
0.20
- Allow sources being compiled to be read from annotation processors. (95e749d)
- Fix false negative when comparing source files that differ only in try-with-resources specifications. (cb6486c)
- Add
withAnnotationProcessorPath()
toCompiler
. (80a9ee0) - Improve error messages rendered by
JavaSourcesSubject.parsesAs()
andJavaFileObjectSubject.containsElementsIn()
to more easily distinguish between errors incurred in actual vs expected source. (115014e) - Use
@Nullable
from the Checker Framework and fix a few null-correctness issues. (6260258) - Fixed bug where testing
package-info.java
withparsesAs()
threw aNullPointerException
. (c46b1b6) - Close
JavaCompiler
objects to avoid resource leaks. (cd2c0a8)
0.19
Release 0.18
- Prepare for the removal of
actual()
from Truth.
Release 0.17
- Prepared for the removal of various APIs from Truth.
Release 0.16
- Migrated off Truth's removed
failWithRawMessage
and deprecatedfail
. (2678c36, 3f1f222) CompilationSubject.succeeded()
now shows warnings as well as errors on failure. (7d31b53)- Make
ForwardingStandardJavaFileManager
public. (acf6ae7) - Add
withClasspath(Iterable<File>)
toCompiler
andJavaSourcesSubject
and deprecatewithClasspathFrom(ClassLoader)
(7622471)
Release 0.15
Updated dependencies and plugins to support Java 9.
Release 0.14
- Implement
JavaFileObjectSubject.containsElementsIn()
(49c254f)
Release 0.13
- Upgrade Truth dependency to 0.36 and make required changes, including changing from
SubjectFactory
toSubject.Factory
(which should usually be transparent to users as long as they recompile). - Make a few assertions work better with
expect
and similar failure strategies. - Start preparing for Java 9.
Release 0.12
Upgrade Truth dependency to 0.35 and make required internal changes.