![]() You can also find the command in the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P)) by searching for Java: Go to Test. ![]() If your source code is contained in src/main/java or src/test/java, you can find the entry named Go to Test or Go to Test Subject in the editor context menu: The extension provides features to help you navigate between your tests and test subjects. Including the lifecycle methods and the test method: Test navigation If you trigger the source action from your test source code, you will be asked which kinds of test methods you want to add. ![]() The extension will then generate the test code for you: If you trigger this source action from your main source code (test subject), you will be asked the test class's fully qualified name and the methods you want to test. You can find the entry in the editor context menu. The extension provides features to help you scaffold test cases. You can select the links in the stack trace to navigate to the source location. You can trigger the command Test: Peek Output to peek the results view. View test resultsĪfter running/debugging the test cases, the state of the related test items will be updated in both editor decorations and the Testing Explorer. More details can be found on the vscode-java-test Wiki. Note: This setting only takes effect when testKind is set to junit Tags having ! as the prefix will be excluded.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |