Comments (7)
1 language server generate and resolve junittest codelens
2 investigate junit interface for invoking a test in commandline
3 customized junit test runner which could run/debug test suites and print test structure and test duration, test status(failure with stacktrace)
4 vscode extension adds commands for junittest run/debug codelens
from vscode-java-debug.
This feature is on This feature is on https://github.com/Microsoft/vscode-java-test
from vscode-java-debug.
This relates to eclipse-jdtls/eclipse.jdt.ls#172
from vscode-java-debug.
eclipse-jdtls/eclipse.jdt.ls#420
from vscode-java-debug.
Regarding 2. JUnitCore allows for running a single class. But it looks like you might need another solution in order to run a specific method.
There's also a --filter
parameter, but I don't know that JUnit natively has support for running a single method. Relevant PR: junit-team/junit4#647
from vscode-java-debug.
@claycephas JunitCore doesn't provide a way to run a single test, so we have to provide a customized junit runner. About how to run a single test, i 'm thinking to use this method : http://junit.sourceforge.net/javadoc/org/junit/runner/Request.html#method(java.lang.Class, java.lang.String)
from vscode-java-debug.
Yes, I think you could use the Request class together with JUnitCore. Something like this.
When running a single method from method code lens:
new JUnitCore().run(Request.method(MyClass.class, "methodName"))
When running an entire class from class code lens:
new JUnitCore().run(Request.aClass(MyClass.class))
from vscode-java-debug.
Related Issues (20)
- not completing
- Text selection issues in Debug Console when the screen is turned over HOT 2
- ExternalTerminal 'C:\Program' is not recognized...
- Why does this not work with virtual workspaces? HOT 1
- jdk17 source code, src.zip which is invisible HOT 4
- Hot Code Replace returns `Cannot find any changed classes for hot replace!` message HOT 13
- Issue with GitHub Copilot extension Visual Studio Code HOT 2
- better support for copying complex objects
- Lombok functions are not retrieved in build phase HOT 1
- burpsui2022 HOT 1
- Support specifying explicit/separate JRE/JDK for a launch task HOT 3
- Debugger not working when jar packages contain unicode filenames HOT 3
- When attaching debugger to remote JVM, where do I see "System.out" output? HOT 2
- No delegateCommandHandler for vscode.java.resolveMainMethod HOT 3
- Java Code runs on jGrasp but not on VS Code HOT 5
- run burp HOT 1
- Can manually run project but not in VS Code due to an ambiguous failure to compile HOT 4
- ProjectName in debug profile doesn't match gradle projectName HOT 5
- Logpoints can't be evaluated
- Debugger for Java, "javaExec": "java.bat", spawn EINVAL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-java-debug.