Releases: r-dbi/DBItest
Releases · r-dbi/DBItest
v1.3
Bug fixes
- Fix
read_table
test when the backend actually returns the data in a different order.
New tests
- Test
dbDataType()
on connections (#69, #75, @imanuelcostigan). - Check returned strings for UTF-8 encoding (#72).
- Repeated
dbBind()
+dbFetch()
on the same result set (#51).
Features
tweaks()
gains an...
as first argument to support future/deprecated tweaks (with a warning), and also to avoid unnamed arguments (#83).testthat
now shows a more accurate location for the source of errors, failures, and skips (#78).- Aggregate skipped tests, only one
skip()
call per test function. - Indicate that some tests are optional in documentation (#15).
Internal
- New
constructor_relax_args
tweak, currently not queried. - The
ctx
argument is now explicit in the test functions. - Change underscores to dashes in file names.
- Remove
testthat
compatibility hack. - New
all_have_utf8_or_ascii_encoding()
which vectorizeshas_utf8_or_ascii_encoding()
. - Test on AppVeyor (#73).
- Work around regression in R 3.3.0 (fix scheduled for R 3.3.1) which affected stress tests.
v1.2
- Infrastructure
- Improve tests
testthat
dependency- Import all of
testthat
to avoidR CMD check
warnings. - Compatibility with dev version of
testthat
(#62).
- Import all of
- Improve Travis builds
- Use container-based builds on Travis.
- Install
RPostgres
andRMySQL
fromrstats-db
. - Install
DBI
andtestthat
from GitHub.
v1.1
- New feature: tweaks
- New argument
tweaks
tomake_context()
(#49). - New
tweaks()
, essentially constructs a named list of tweaks but with predefined and documented argument names. constructor_name
, respected by theconstructor.*
tests.strict_identifier
, ifTRUE
all identifier must be syntactic names even if quoted. The quoting test is now split, and a part is ignored conditional to this tweak. Theroundtrip_quotes
tests also respects this tweak.omit_blob_tests
for DBMS that don't have a BLOB data type.current_needs_parens
-- some SQL dialects (e.g., BigQuery) require parentheses for the functionscurrent_date
,current_time
andcurrent_timestamp
.union
, for specifying a nonstandard way of combining queries. All union queries now name each column in each subquery (required forbigrquery
).
- New argument
- New tests
dbGetInfo(Result)
(r-dbi/DBI#55).dbListFields()
(#26).- New
package_name
test intest_getting_started()
.
- Improved tests
- Stress test now installs package in temporary library (before loading
DBI
) usingR CMD INSTALL
before loading DBI (r-dbi/RSQLite#128, #48). - Row count is now tested for equality but not identity, so that backends can return a numeric value > 2^31 at their discretion.
- Call
dbRemoveTable()
instead of issuingDROP
requests, the latter might be unsupported. - Use subqueries in queries that use
WHERE
. - Test that
dbClearResult()
on a closed result set raises a warning. - Expect a warning instead of an error for double disconnect (#50).
- Move connection test that requires
dbFetch()
totest_result()
. - Split
can_connect_and_disconnect
test. - Expect
DBI
to be inImports
, not inDepends
.
- Stress test now installs package in temporary library (before loading
- Removed tests
- Remove test for
dbGetException()
(r-dbi/DBI#51).
- Remove test for
- Bug fixes
- Fix broken tests for quoting.
- Self-testing
- Test
RPostgres
,RMySQL
,RSQLite
andRKazam
as part of the Travis-CI tests (#52). - Travis CI now installs rstats-db/DBI, updated namespace imports (
dbiCheckCompliance()
,dbListResults()
). - Use fork of
testthat
.
- Test
- Utilities
- Return test results as named array of logical. Requires r-lib/testthat#360, gracefully degrades with the CRAN version.
- Internal
- Refactored the
get_info_()
tests to use a vector of names. - Use versioned dependency for DBI
- Use unqualified calls to
dbBind()
again
- Refactored the
v1.0
v0.3
- Feature-complete, ready for review
- Tests from the proposal
- Add missing methods to compliance check
- Add simple read-only test (#27)
- Add stress tests for repeated load/unload (with and without connecting) in new R session (#2),
- Migrate all tests from existing backends (#28)
- Refactor
data_
tests to use a worker functiontest_select()
- Test tables with
NA
values above and below the non-NA
value indata_
tests - Test return values and error conditions for
dbBind()
anddbClearResult()
(#31) - Test vectorization of
dbQuoteString()
anddbQuoteIdentifier()
(#18) - Test that dates have
integer
as underlying data type (#9) - Roundtrip tests sort output table to be sure (#32)
- Test
NA
toNULL
conversion indbQuoteString()
, and false friends (#23) - Enhance test for
dbQuoteIdentifier()
(#30)
- Style
- Documentation
- Same as 0.2-5
v0.2
- Tests from the proposal
- SQL
- Metadata
- DBI compliance (not testing read-only yet)
- Migrate most of the tests from RMySQL
- Test improvements
- Testing infrastructure
- Disambiguate test names (#21)
- Use regex matching for deciding skipped tests, skip regex must match the entire test name
- Documentation
- Document all tests in each test function using the new inline documentation feature of roxygen2
- Improve documentation for
test_all()
: Tests are listed in new "Tests" section - Add brief instructions to README
- Move repository to rstats-db namespace
- Same as 0.1-6
v0.1
- First GitHub release
- Builds successfully on Travis
- Testing infrastructure
- Test context
- Skipped tests call
skip()
- Function
test_all()
that runs all tests
- Tests from the proposal
- Getting started
- Driver
- Connection
- Results
- Code formatting is checked with lintr
- Same as 0.0-5