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

[FLASH-290]Test cases for DeltaMerge and Gen code coverage report #82

Merged
merged 1 commit into from
Jun 14, 2019

Conversation

JaySon-Huang
Copy link
Contributor

Run unit tests

cd $BUILD_DIR   # eg. cd cmake-build-debug
# list all tests of dm
make help | grep dm_test
# example
make dm_test_segment
$(find . -name dm_test_segment)
## only run one test case
$(find . -name dm_test_segment) --gtest_filter='Segment_test.Split'

image

# only build and run unit tests of dm
make unit_tests_dm
$(find . -name unit_tests_dm)

# build and run all unit tests
make unit_tests_dbms
$(find . -name unit_tests_dbms)

Gen Code Coverage report

# turn on CMAKE switch for gen coverage report
# NOTE: this switch in only effective under debug mode,
# and it will make multi-threads code run as slow as single thread
cd $BUILD_DIR
cmake -DCMAKE_BUILD_TYPE=Debug -DTEST_COVERAGE=ON

# gen coverage report in $CODE_ROOT/CoverageReport
# this build target will build && run unit_tests_dbms, then collect info and gen coverage report if all tests passed 
# NOTE: coverage report will gen if all tests passed 
make tiflash_gcovr_coverage
# now you can open $CODE_ROOT/CoverageReport/tiflash_gcovr_coverage/index.html

image

@JaySon-Huang JaySon-Huang requested a review from flowbehappy June 12, 2019 09:38
@JaySon-Huang JaySon-Huang self-assigned this Jun 12, 2019
@JaySon-Huang
Copy link
Contributor Author

/build

1 similar comment
@JaySon-Huang
Copy link
Contributor Author

/build

@JaySon-Huang JaySon-Huang force-pushed the DeltaMergeEngineTests branch from fd84f7f to 358d6e3 Compare June 13, 2019 07:21
@JaySon-Huang JaySon-Huang changed the title Test cases for DeltaMerge and Gen code coverage report [FLASH-290]Test cases for DeltaMerge and Gen code coverage report Jun 13, 2019
@JaySon-Huang JaySon-Huang force-pushed the DeltaMergeEngineTests branch from 358d6e3 to e6ec9c8 Compare June 13, 2019 12:04
@flowbehappy
Copy link
Contributor

LGTM

@JaySon-Huang JaySon-Huang force-pushed the DeltaMergeEngineTests branch from a7a8716 to 295497b Compare June 14, 2019 08:25
@JaySon-Huang
Copy link
Contributor Author

/build

1 similar comment
@JaySon-Huang
Copy link
Contributor Author

/build

use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
@JaySon-Huang JaySon-Huang force-pushed the DeltaMergeEngineTests branch from 295497b to 78222d6 Compare June 14, 2019 10:49
@JaySon-Huang JaySon-Huang merged this pull request into DeltaMergeEngine Jun 14, 2019
@JaySon-Huang JaySon-Huang deleted the DeltaMergeEngineTests branch June 14, 2019 11:01
flowbehappy pushed a commit that referenced this pull request Jun 19, 2019
disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Aug 26, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Sep 5, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Sep 12, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Sep 18, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Sep 23, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit that referenced this pull request Sep 26, 2019
disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Oct 17, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Oct 18, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit that referenced this pull request Oct 22, 2019
disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Oct 23, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Oct 30, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Nov 1, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Nov 1, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
JaySon-Huang added a commit to JaySon-Huang/tiflash that referenced this pull request Nov 5, 2019
…ingcap#82)

disable unittest of zookeeper
use gtest for testing
add code coverage report
add test cases for DeltaMerge::(StorageDeltaMerge / DeltaMergeStore / Segment / DiskValueSpace / Chunk)
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.

2 participants