Skip to content

add intellij integration test structure #76

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

Merged
merged 18 commits into from
Apr 22, 2025
Merged

add intellij integration test structure #76

merged 18 commits into from
Apr 22, 2025

Conversation

afucher
Copy link
Collaborator

@afucher afucher commented Mar 31, 2025

  • Setup structure
  • Add test workflow
  • Implement one test case

Copy link

github-actions bot commented Mar 31, 2025

TestsPassed ✅SkippedFailed
JUnit Test Report1 ran1 ✅0 ⚠️0 ❌

action
(com.intellij.openapi.actionSystem.AnActionEvent/createFromDataContext action-id nil context))))))

(defn wait-lsp-start
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason using the same approach from clj4intellij with promises makes the test to hang forever 😢 So, we decided to create a specific function in this project to use a timeout instead of promise to wait.

@afucher afucher marked this pull request as ready for review April 22, 2025 17:36
:or {millis 1000
timeout 10000}}]
(let [start-time (System/currentTimeMillis)]
(loop []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clojure.core.async/alts! is perfect for those do or timeout task, but it's ok to keep it as it is

@ericdallo ericdallo merged commit 61f37f8 into master Apr 22, 2025
3 checks passed
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.

5 participants