Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite3_test.go: Fix go test -run=...: Use standard sub-tests #881

Merged
merged 1 commit into from Oct 25, 2021

Conversation

evanj
Copy link
Contributor

@evanj evanj commented Nov 16, 2020

Selecting only some tests with go test -run=... does not work, because
some of the tests are executed using testing.RunTests(). That function
is documented as "an internal function". This changes TestSuite to use
the testing subtests feature instead.

This has a behaviour change: the benchmarks now need to be
selected at the command line with the standard go test -bench=.
flag. This will also set up the test database twice when running
benchmarks, rather than once.

Selecting only some tests with go test -run=... does not work, because
some of the tests are executed using testing.RunTests(). That function
is documented as "an internal function". This changes TestSuite to use
the testing subtests feature instead.

This has a behaviour change: the benchmarks now need to be
selected at the command line with the standard go test -bench=.
flag. This will also set up the test database twice when running
benchmarks, rather than once.
@codecov-io
Copy link

codecov-io commented Nov 16, 2020

Codecov Report

Merging #881 (6966ca0) into master (92f580b) will decrease coverage by 0.94%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #881      +/-   ##
==========================================
- Coverage   47.26%   46.31%   -0.95%     
==========================================
  Files          12       11       -1     
  Lines        1917     1440     -477     
==========================================
- Hits          906      667     -239     
+ Misses        876      639     -237     
+ Partials      135      134       -1     
Impacted Files Coverage Δ
sqlite3_go18.go 82.35% <0.00%> (-5.89%) ⬇️
sqlite3_load_extension.go 59.37% <0.00%> (-3.67%) ⬇️
backup.go 83.33% <0.00%> (-1.29%) ⬇️
callback.go 58.16% <0.00%> (-0.81%) ⬇️
error.go 81.81% <0.00%> (-0.54%) ⬇️
convert.go 0.00% <0.00%> (ø)
sqlite3_type.go 0.00% <0.00%> (ø)
sqlite3_context.go 0.00% <0.00%> (ø)
sqlite3_func_crypt.go 100.00% <0.00%> (ø)
sqlite3_opt_userauth_omit.go 10.00% <0.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92f580b...6966ca0. Read the comment docs.

@mattn
Copy link
Owner

mattn commented Nov 17, 2020

Thank you. But tests seems failing.

@mattn
Copy link
Owner

mattn commented Nov 17, 2020

Could you please rebase from master ?

@mattn mattn merged commit a4fc68a into mattn:master Oct 25, 2021
@mattn
Copy link
Owner

mattn commented Oct 25, 2021

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants