Skip to content

reusing test case information to speed up execution of selected tests (#107)#131

Merged
csoltenborn merged 1 commit into
developfrom
#107_ReuseTestCases
Apr 17, 2017
Merged

reusing test case information to speed up execution of selected tests (#107)#131
csoltenborn merged 1 commit into
developfrom
#107_ReuseTestCases

Conversation

@csoltenborn
Copy link
Copy Markdown
Owner

Reuse test cases provided by VS to speed up test execution of selected tests (i.e., if ITestExecutor.RunTests(IEnumerable<VsTestCase> vsTestCasesToRun, IRunContext runContext, IFrameworkHandle frameworkHandle) is invoked).

Test case meta information (# of tests in suite of test case, # of tests in executable of test case) is stored as TestProperties and used at test execution time to create test case selection parameters for Google Test (before, information about all available test cases was needed for this).

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2017

Codecov Report

Merging #131 into develop will decrease coverage by 0.39%.
The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop     #131     +/-   ##
==========================================
- Coverage    73.01%   72.62%   -0.4%     
==========================================
  Files           76       78      +2     
  Lines         2913     2970     +57     
  Branches       427      442     +15     
==========================================
+ Hits          2127     2157     +30     
- Misses         637      661     +24     
- Partials       149      152      +3
Flag Coverage Δ
#Integration 57.65% <60.22%> (-0.23%) ⬇️
#Unit 53.29% <47.72%> (-0.09%) ⬇️
Impacted Files Coverage Δ
...leTestAdapter/Core/Runners/SequentialTestRunner.cs 72.5% <100%> (+0.1%) ⬆️
GoogleTestAdapter/Core/Model/TestCase.cs 86.95% <100%> (+0.59%) ⬆️
GoogleTestAdapter/TestAdapter/TestExecutor.cs 78.21% <100%> (-0.43%) ⬇️
GoogleTestAdapter/Core/GoogleTestExecutor.cs 79.31% <100%> (ø) ⬆️
...ogleTestAdapter/Core/Runners/ParallelTestRunner.cs 85.1% <100%> (ø) ⬆️
...gleTestAdapter/Core/Runners/PreparingTestRunner.cs 80.3% <100%> (ø) ⬆️
GoogleTestAdapter/Core/Model/TestProperty.cs 28.57% <28.57%> (ø)
...oogleTestAdapter/Core/TestCases/TestCaseFactory.cs 76.21% <40%> (-4.34%) ⬇️
...leTestAdapter/Core/Runners/CommandLineGenerator.cs 87.82% <80%> (-2.92%) ⬇️
...TestAdapter/Core/Model/TestCaseMetaDataProperty.cs 83.33% <83.33%> (ø)
... and 3 more

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2017

Codecov Report

Merging #131 into develop will decrease coverage by 0.39%.
The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           develop     #131     +/-   ##
==========================================
- Coverage    73.01%   72.62%   -0.4%     
==========================================
  Files           76       78      +2     
  Lines         2913     2970     +57     
  Branches       427      442     +15     
==========================================
+ Hits          2127     2157     +30     
- Misses         637      661     +24     
- Partials       149      152      +3
Flag Coverage Δ
#Integration 57.65% <60.22%> (-0.23%) ⬇️
#Unit 53.29% <47.72%> (-0.09%) ⬇️
Impacted Files Coverage Δ
...leTestAdapter/Core/Runners/SequentialTestRunner.cs 72.5% <100%> (+0.1%) ⬆️
...gleTestAdapter/Core/Runners/PreparingTestRunner.cs 80.3% <100%> (ø) ⬆️
GoogleTestAdapter/Core/GoogleTestExecutor.cs 79.31% <100%> (ø) ⬆️
...ogleTestAdapter/Core/Runners/ParallelTestRunner.cs 85.1% <100%> (ø) ⬆️
GoogleTestAdapter/TestAdapter/TestExecutor.cs 78.21% <100%> (-0.43%) ⬇️
GoogleTestAdapter/Core/Model/TestCase.cs 86.95% <100%> (+0.59%) ⬆️
GoogleTestAdapter/Core/Model/TestProperty.cs 28.57% <28.57%> (ø)
...oogleTestAdapter/Core/TestCases/TestCaseFactory.cs 76.21% <40%> (-4.34%) ⬇️
...leTestAdapter/Core/Runners/CommandLineGenerator.cs 87.82% <80%> (-2.92%) ⬇️
...TestAdapter/Core/Model/TestCaseMetaDataProperty.cs 83.33% <83.33%> (ø)
... and 3 more

@csoltenborn csoltenborn added this to the 0.10 milestone Apr 17, 2017
@csoltenborn csoltenborn self-assigned this Apr 17, 2017
@csoltenborn csoltenborn merged commit caae110 into develop Apr 17, 2017
@csoltenborn csoltenborn deleted the #107_ReuseTestCases branch April 21, 2017 06:16
csoltenborn pushed a commit that referenced this pull request Aug 4, 2018
…txt (#131)

* Support for working directory and environment set through CMakeLists.txt

* Update the adapter to remove mention of CTest

* Fix test code build breaks

* Addressing PR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants