- #262 Interactive prompt
slowness caused by recent R changes to
showConnections()
. - #261 RDS files are explicitly saved in serialization version 2 for backwards compatibility.
- #244 Squash all partial
match warnings that
unitizer
emitted underoptions(warnPartialMatch*)
. - Tests explicitly set
stringsAsFactors=TRUE
so they don't fail with the anticipated changed for R4.0. - Adds the 'unitizer.restarts.ok' option to suppress warnings about being run
within
withRestart
blocks.
install.packages
calls in tests now use a temporary folder for library.
- Set
RNGversion()
in internal tests due to changes to R sampling mechanism.
- #258 Remove
devtools
as a suggests dependency (reported by @jimhester). - #257 Ensure all slots in S4 prototypes exist in the class definition (reported by B. Ripley).
- Colors in test browser working again.
- #220 Fix vignette ordering on CRAN.
- #225 Inferring file locations when not in pkg top level.
- #237 Option to turn off diffs.
- #239 Document issues with deparsing doubles in tests.
- #242 Correctly parse newlines in prompt input.
- #241
q()
actually works now. - #231 Report parse warnings at prompt.
- #234 Random seed issues.
- #220 Re-order vignettes.
- Wrap
diffObj
call intry
to avoid killingunitizer
section whendiffObj
errors. - Modify
test_dir
calls to usewrap
ontestthat
versions greater than 0.1.2.
- Fix tests broken by R-devel 3.4.1 improvements to S4 deparsing
- #232 document that
.Last.value
does not work - #228 more docs on handling RDS files
- README typos (@eddelbuettel)
- Improve vignette index
- #221 Crash on Re-Run due to poor comparison of parsed test file sources
- #222 Allow loading of
unitizers
generated by later versions of the package in earlier version of the packages provided the object validates - #224 Slow re-eval in recommended state mode with lots of files
Fixing CRAN submission errors.
First Release to CRAN.
- #213: Disable advanced state management by default to comply with CRAN
- #203: Better reporting of search path state differences
- Assorted bugfixes and enhancements: #214, #215, #208, #201, #208, #199, #197
Interim release to get changes over past year out on the master branch.
- #194: Performance improvements
- #102: Ability to break out
of multi file review with
QQ
- #186: If you type
q()
orquit()
by mistake you can now cancel that action beforeunitizer
terminates unceremoniously - #142: Ability to run
unitize
andunitize_dir
without specifying any arguments (infer from working directory) - #168: Failing tests now will display all output and conditions
- #171: Flush warnings in
unitizer
REPL - Improved integration of object diffs via
.DIFF
and.diff
- Display improvements, including:
- Several other enhancements
- #188: Search path issues in r-devel @richierocks
- Fix unintended detaching of
tools:rstudio
, and many others base.env
now unique for eachunitizer
- Several unitizer prompt issues:
- No longer capture prompt evals so
debug
is usable again - Parse errors reported correctly
- #165: Confusing Help Prompt
- No longer capture prompt evals so
- Reference state properly preserved (previously would incorrectly use new state for reference tests kept in store)
- Internal shimming of library/detach/attach more robust
- Updated tests for changes in testthat, R
- More comprehensive state tracking and resetting:
- options, random.seed, and wd are tracked in addition to search path
- state is reset when reviewing tests as well as when executing them
- you are alerted off state differences between new and reference tests on error
- State control parameters are streamlined; API breaking
- Whether an expression is ignored or not is now a function of whether the expression returns visibly or not
- Pre and post test scripts
- 'helper' directory renamed '_pre'
- Can now use a '_post' directory to run cleanup
- Interactive environment cleanup
- Display tweaks
- Contextual help tweaks
- Vignette updates
- Demo update
- Added
Rdiff_obj
to run atools::Rdiff
directly on two R objects
- Reduced storage requirements for the
unitizer
stores- No longer storing assignments both as test value and object in environment
- Calls recorded deparsed instead of as call objects
- Shimming used for search path tracking is more lightweight
- Text capture much more robust
107, 106, 104, 103, 101, 99, 98, 94, 93, 90, 85, 84, 77, 74, 71, 67, 127, 115, 132, 134
- Complete restructure of internal test management to allow for much more robust
unitize_dir
behavior (#51) - Added
testthat
->unitizer
translation utilities (see?testthat_translate_file
) - Can now pre-load objects before unitizing;
unitize_dir
andunitize
by default auto-preload files in subdir 'helper' - Renamed arg
env.clean
topar.env
(technically API breaking, but since no one is using this package yet...) - Many usability fixes (#48, #68, #82, #83), and improved text display
- Improved path inference to better guess desired unitizer based on partiallly specified file names (#72)
unitize_dir
works with empty dirs (#78)- Better management of file locations and names (#35, #75)
review
now properly infers unitizer locations
- Added ability to accept multiple tests at once (Issue #45, use wisely...)
unitize
can now infer partially specified test file names (in particular, will know to look inpkgname/tests/unitizer
; see?infer_unitizer_location
)parse_with_comments
no longer run in non-interactive mode (#63)- Test call now part of output of test object
show
method (#54)
- Comments inside
unitizer_sect
preserved (#64) - Ignored tests assigned to first non-ignored test section (#57)
- Prompt display issues (#65, #66)
search_path_cleanup
more robust (#59)get_text_capture
tests added (#60)
- Reduced test execution and parsing overhead
- Better handling of call recording for traceback and condition calls
editFunNames
becomeseditCalls
and provides more comprehensive editing of calls (Issue #52)
- Comment handling in calls (Issues #56, #58)
- Comment deparsing (Issues #39, #47, #52)
- Failed tests now automatically output a snippet of new and reference objects (Issue #34)
- Text handling generally improved (better wrapping, etc. Issue #38)
- Parsing speed improved (Issue #15)
- Got rid of
get*
functions, instead, access test details with.NEW
/.REF
(Issue #29) - Implemented
editFunNames
to allow user to modify stored calls inunitizer
so that tests can be re-used even if function names are changed
Doc updates; should have been part of 0.6.4, but was too rushed to push...
- Comment parsing faster (issue #15)
- Reference section logic improved (assume fixes #36 until there is evidence against)
- Several parse errors fixed
- Now depends on R 3.1.2 (not really, but that's what we are developing on and don't have bandwidth to test against multiple R versions)
- stderr now show in
review
mode (issue #43) - package startup messages suppressed (issue #23)
- small demo bug
- Better whitespace wrapping in terminal mode (partially addresses #38)
- Can now drop all items in review mode (issue #37)
- Workaround an R parse bug (issue #41)
traceback()
now works forstop(simpleError(...))
type stops
Behavior changes:
- History is only subbed out if you need to type input (issue #40)
Minor release, no substantive changes.
- Loading a
unitizer
no longer automatically modifies it throughupgrade
upgrade
cleaned up and has tests now- calling functions in form
pkg::fun
orpkg:::fun
no longer causes problems when checking for ignoredness
get
no longer warns ifunitizer
ids don't match
- Added a demo (
demo(unitizer)
) - Broke up and updated vignettes
unitize_dir
allows you to run all tests in a directory (issue #24)review
allows you to review and drop tests from an existingunitizer
store (issue #21)- Test navigation mechanism improved (issue #26)
- Typing R at the unitizer prompt now allows you to review all tests
- You can skip ahead too
unitize(..., force.update=TRUE)
will overwrite unitizer even if there were no changes recorded (issue #19)
unitize
now runs withsearch.path.clean=TRUE
by default
- Comparison function warnings not captured (issue #14)
- Search path restoration error messages fixed (issue #22)
- Navigation regressions fixed (issue #30)
Summary titles cleaned up, interative prompts made clearer, package reload warn conflicts quieted (d2fe594c747, #23)
- Can now run tests in clean environment (i.e. objects from .GlobalEnv will not be visible) (issue #13)
- Can now run tests with clean search path (i.e. only the basic R libraries are
loaded) (also issue #13), use
unitize(..., search.path.clean=TRUE)
- New vignette "Reproducible Tests" discusses the above features
- Expressions printed as tests evaluated now truncated corretly (issue #4)
- Incorrect displaying/hiding of ignored tests in some circumstances fixed
- Summary no longer includes "removed" tests in matrix, since those are section- less
- Other minor clean-up of the interactive environment prompting
- LBB now parsed properly (issue #5)
- Non interactive parse (issue #11)
- Review and Back behavior consistent now in interactive use (issue #3)
- Other interactive use cleanup (issues #6, 12, 10, 9)
- Vignette now done properly
- Fixed setOldClass conflicts with RJSONIO (issue #1)
- Fixed run_ls not finding base env under certain circumstances (issue #2)
- Fixed conditionLists looping issue introduced when fixing issue #1