Local fork of continuedev/continue for auto-approve and full-access mode experiments
Find a file
Jakub Blach 5f647afdf2 fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2
The tests use fixtures and operate on real files in a temp directory.
This change will allow us to confidently migrate from java.io.File to VFS.

Note: These tests are headless and starts the Continue binary. This gives us many possibilities because we can write fast and valuable tests without runIdeForUiTests.

The IntelliJ Platform plugin already includes classes like BasePlatformTestCase written in JUnit 3, which we should be using for unit testing.
We also have JUnit 5 for e2e testing. As a result, we had two different runners, which caused problems because we couldn’t use classes like UsefulTest since they required a different runner.
In order to fix that, I had to add `org.junit.vintage:junit-vintage-engine` to enable running both JUnit 3 and JUnit 5 tests.

Note: ideally, we should have a sourceSet named testIntegration with its own dependencies for E2E (robot, JUnit 5, video recorder).
That would give us a clean separation between E2E tests and unit tests. That would prevent accidental use of JUnit 5 classes in unit tests. We should do that in the future.

The new platform simplifies plugin config and allows us to remove some of the custom code.
I left the original Qodana and Kover configs, but looking at our workflow, i think it's currently dead code.
If we don’t plan to use them, I think we can remove these dependencies in the future.

Note: along with this migration, I had to bump a wrapper to latest version.

For some reason, we included the Kotlin standard library with the plugin, even though we had a property specifying we didn’t want to.
I saw no objections to removing this dependency, so I decided to do that.

From now on, we rely on older stdlib that's bundled with 2022.3+.

More context: https://github.com/continuedev/continue/pull/6431#issuecomment-3031838189

This proves my point regarding the removal of the standard library dependency.

I added plugin verification against versions 2022.3.3 (oldest) and 2025.1.4 (newest). Everything is working.

Plugin can be verified with `./gradlew verifyPlugin`. We can consider adding this to CI later.

I made a few small improvements that simplify the build scripts:
* Some properties were removed because they duplicated content from `plugin.xml` (e.g., supported version numbers, plugin ID, and similar - all were unnecessarily overridden inside `intellij {}`/`intellijPlatform {}`).
* I replaced `prepareSandbox` with a separate task that is now a dependency of all `runIde` tasks, so there is no need to declare each case individually.
* From now on, properties are read via delegation instead of calling our custom `properties(...)` function. This is type-safe (if a property is not declared, the build will fail).
* I removed the `kotlin("test")` dependency, which we were only using for `assertTrue`.

The e2e Autocomplete tests are very flaky, and unfortunately, I haven’t been able to find a solution yet. I will try to address this in upcoming fixes.
I believe that ultimately we should have max one e2e test describing the happy path, and the rest of the features should be tested with unit tests.
Our e2e tests are very inconvenient, which results in no one running them (because we hijack the input), so they should be kept to a minimum.
The rest of the e2e tests were already disabled (I assume I know why :D), so I didn't touch them.

Fun fact: with the removal of the standard library, we managed to remove all unnecessary dependencies except for Sentry and PostHog (which are included for obvious reasons).
2025-07-28 20:39:44 +02:00
.continue Merge pull request #6638 from continuedev/pe/enum-rule 2025-07-21 21:55:55 -07:00
.github Revert "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 08:07:06 -07:00
.idea fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2 2025-07-28 20:39:44 +02:00
.vscode Revert "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 08:07:06 -07:00
binary fix: adjust binary/build.js. copy vscode/tree-sitter folder to binary/ and pack into binary file 2025-07-10 20:00:43 +08:00
core chore: ignore max-lines-per-function in tests (#6825) 2025-07-28 09:04:13 -07:00
docs Merge pull request #6753 from continuedev/adjust-best-models 2025-07-22 16:17:50 -07:00
eval Preview (#1750) 2024-07-28 23:16:18 -07:00
extensions fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2 2025-07-28 20:39:44 +02:00
gui Merge pull request #6710 from uinstinct/test-file-codeblock 2025-07-28 08:50:48 -07:00
manual-testing-sandbox add next edit test cases 2025-06-24 18:13:15 -07:00
media update run configs 2024-10-23 16:50:15 -07:00
packages Revert "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 08:07:06 -07:00
scripts Revert "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 08:07:06 -07:00
sync merkel 2024-10-23 10:29:15 +02:00
.continueignore ignore .continue folder 2025-03-08 16:18:51 -08:00
.eslintrc.shared.json add no misused promises rule 2025-06-13 22:09:32 +05:30
.gitignore chore: ignore docusaurus build files 2025-07-11 09:06:46 +05:30
.node-version Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
.nvmrc Update Node.js LTS to v20.19.0 2025-04-22 02:01:03 +08:00
.prettierignore add to prettierignore 2025-05-25 18:40:42 -07:00
.prettierrc remove border above input box 2024-11-05 08:18:31 -08:00
CLA.md docs: Update MCP documentation and add CLA 2025-07-16 02:26:46 -07:00
CODE_OF_CONDUCT.md npx prettier --check "**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-path . 2025-05-25 18:41:32 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md 2025-07-13 20:52:03 -07:00
LICENSE Create LICENSE 2023-06-03 09:29:19 +02:00
package-lock.json Revert "feat: enhance oneper utility and refactor build system for commit SHA versioning" (#6811) 2025-07-28 08:07:06 -07:00
package.json remove global jsdom dep 2025-06-26 14:40:07 -07:00
README.md fix img paths on README 2025-07-11 18:11:30 -07:00
SECURITY.md Create SECURITY.md 2025-02-01 01:01:08 -08:00
tsconfig.json .continuerules 2024-12-15 09:30:56 -08:00

Continue logo

Continue

Continue enables developers to create, share, and use custom AI code assistants with our open-source VS Code and JetBrains extensions and hub of models, rules, prompts, docs, and other building blocks

Agent

Agent enables you to make more substantial changes to your codebase

agent

Chat

Chat makes it easy to ask for help from an LLM without needing to leave the IDE

chat

Autocomplete

Autocomplete provides inline code suggestions as you type

autocomplete

Edit

Edit is a convenient way to modify code without leaving your current file

edit

Getting Started

Learn about how to install and use Continue in the docs here

Contributing

Read the contributing guide, and join #contribute on Discord.

License

Apache 2.0 © 2023-2024 Continue Dev, Inc.