Releases: approvals/ApprovalTests.Java
Added FileUtils.getResolvedPath()
Python scripts for remove_abandoned_files and approve_all
Also, temp folder works when running tests in multi-threaded mode
ReadBuffer input no longer modifies newlines or adds them at the end
Also:
Added StringUtils.ensureEnding
Added FileUtils.readFile(file, ensureTrailingNewline = true)
Closes #637
Automatically git-ignore our temp folder
Just like ApprovalTests.Python, we now write a .gitignore
file into our temp directory, thus consumers of the library don't have to add the folder themselves to their project's gitignore.
Once.runAsync
Once
now supports running tasks asynchronously.
Bugfix
Downloading the approve_all script now is done asynchronously, meaning it won't affect build times.
Closes #615
Fixes problems with ReporterWithApprovalPower and FirstWorkingReporter
Allow configuration of project base directory
By default, Approvals uses the working directory to find the working directory and its children to find source file and store received and approved files. This is now configurable if your working directory no longer contains the source. You can do this by setting either the system property or system environment variable called APPROVALTESTS_PROJECT_DIRECTORY
. Here is an example of doing this when running tests with maven on forks:
<systemPropertyVariables>
<APPROVALTESTS_PROJECT_DIRECTORY>${project.basedir}</APPROVALTESTS_PROJECT_DIRECTORY>
</systemPropertyVariables>
Reported in #608
Also fixes #612
Add Once object like in Golang
Once.run(() -> ... your code here ...)
Will execute that code once and only once.
Bugfixes for loadWebPage and readBufferedStream
24.14.2 a reformat code
Use UrlConnection in NetUtils instead of Apache HttpClient
As first fix to #607 let's use java's built-in functionality to make web requests.