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

Valloric / ycmd / 1927
94%

Build:
DEFAULT BRANCH: master
Ran 08 May 2016 05:34PM UTC
Jobs 1
Files 40
Run time 2s
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

pending completion
1927

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

Jobs
ID Job ID Ran Files Coverage
1 1927.1 (USE_CLANG_COMPLETER=true YCMD_PYTHON_VERSION=2.7 COVERAGE=true) 08 May 2016 05:34PM UTC 0
84.96
Travis Job 1927.1
Source Files on build 1927
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1927
  • 24631bbf on github
  • Prev Build on master (#1925)
  • Next Build on master (#1930)
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