Skip to content

Releases: google/compile-testing

0.21.0

12 Dec 20:25
Compare
Choose a tag to compare
  • 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

01 Dec 16:06
Compare
Choose a tag to compare
  • 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() to Compiler. (80a9ee0)
  • Improve error messages rendered by JavaSourcesSubject.parsesAs() and JavaFileObjectSubject.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 with parsesAs() threw a NullPointerException. (c46b1b6)
  • Close JavaCompiler objects to avoid resource leaks. (cd2c0a8)

0.19

21 Oct 17:59
Compare
Choose a tag to compare
  • Updated Truth usages to be compatible with Truth 1.0 and higher.
  • Improved exception thrown by onLine(n) when n is out of range. (b4eaa92)

Release 0.18

30 May 19:12
Compare
Choose a tag to compare
  • Prepare for the removal of actual() from Truth.

Release 0.17

08 May 17:38
Compare
Choose a tag to compare
  • Prepared for the removal of various APIs from Truth.

Release 0.16

08 May 15:55
Compare
Choose a tag to compare
  • Migrated off Truth's removed failWithRawMessage and deprecated fail. (2678c36, 3f1f222)
  • CompilationSubject.succeeded() now shows warnings as well as errors on failure. (7d31b53)
  • Make ForwardingStandardJavaFileManager public. (acf6ae7)
  • Add withClasspath(Iterable<File>) to Compiler and JavaSourcesSubject and deprecate withClasspathFrom(ClassLoader) (7622471)

Release 0.15

21 Dec 16:42
Compare
Choose a tag to compare

Updated dependencies and plugins to support Java 9.

Release 0.14

07 Dec 05:02
Compare
Choose a tag to compare
  • Implement JavaFileObjectSubject.containsElementsIn() (49c254f)

Release 0.13

20 Nov 19:37
Compare
Choose a tag to compare
  • Upgrade Truth dependency to 0.36 and make required changes, including changing from SubjectFactory to Subject.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

11 Sep 17:57
Compare
Choose a tag to compare

Upgrade Truth dependency to 0.35 and make required internal changes.