• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Valloric / ycmd / 1927 / 1
94%
master: 94%

Build:
DEFAULT BRANCH: master
Ran 08 May 2016 05:34PM UTC
Files 40
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 May 2016 05:00PM UTC coverage: 84.957% (+0.06%) from 84.901%
USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7 COVERAGE=true

push

travis-ci

homu
Auto merge of #465 - micbou:tests-clear-cache, r=vheon

[READY] Clear completions cache when sharing the application between tests

### Problem

When sharing the application in tests (using the `@SharedYcmd` decorator), the completions cache is not invalidated between each test. This can make a test not working like expected. For instance, the completions are detailed in the `GetCompletions_MaxDetailedCompletion_test` TypeScript test because of the previous test. However, the test is still passing because the `has_entries` matcher does not check for exact entries.

### Solution

Improve the `GetCompletions_MaxDetailedCompletion_test` TypeScript test by checking that there are no detailed completions.
Invalidate the completions cache for all completers stored by the server state before running each test when sharing the application.

For now, I am only sending the test improvement so that we can confirm the test is failing because we don't clear the completions cache between tests. Then, I'll send the cache invalidation for shared tests.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/valloric/ycmd/465)
<!-- Reviewable:end -->

3061 of 3603 relevant lines covered (84.96%)

0.85 hits per line

Source Files on job 1927.1 (USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7 COVERAGE=true)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1927
  • Travis Job 1927.1
  • 24631bbf on github
  • Prev Job for USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7 COVERAGE=true on master (#1925.1)
  • Next Job for USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7 COVERAGE=true on master (#1930.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc