Why aren't code lenses appearing in my Java test files in my Cloud9 environment?

0

Hello,

I've created a Cloud9 environment which I would like to use for Java development. I have enabled the "Enhanced support for Java" features, and most of them are working.

I see that the enhanced support features are supposed to include code lenses, which according to the documentation are intended to "facilitate unit testing by allowing you to run and debug specific methods."

The "Run | Debug" popup does appear above my main() function in the src/main/java directory. It does NOT appear above the individual unit tests in my src/main/test directory, however, which means I am unable to use code lenses to run individual unit tests.

I assume there's some sort of set up I need to do to get Cloud9 to recognize my functions annotated with @Test as functions to which it should also add code lenses. I recall, for example, that Cloud9 wasn't performing any linting or autocomplete suggestions until after I ran 'mvn compile' for the first time. Please advise.

已提問 2 年前檢視次數 81 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南