-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Consider adding a -n (no execute) option #1503
Comments
Thanks for the idea. According to your idea, is the |
In systems I've seen, this behavior is usually called a dry run, so, if implemented, I'd like to see the option name be closer to that. My two cents: If all I'm told is the name of this feature, I would expect it to run everything except for the logic in the tests themselves. That is, tests would be the only side effects that are ignored. |
This is not an original idea. "make" which is the mother of all build tools had such an option: |
I'm actually surprised it's not already there, I thought I had implemented that, but maybe I got myself confused with Kobalt, which allows that. Since both Kobalt and TestNG use the same engine (DynamicGraph), this is actually pretty easy to implement: when comes the time to add the tasks to the graph, just return a |
Inputs from @cbeust FYI, it would be pretty easy to implement
|
FYI, I used this exact same idea in Kobalt, which also uses |
Closes testng-team#1503 Users can now run their tests in a dry run mode by passing the JVM argument : testng.mode.dryrun=true
Closes testng-team#1503 Users can now run their tests in a dry run mode by passing the JVM argument : testng.mode.dryrun=true
Closes testng-team#1503 Users can now run their tests in a dry run mode by passing the JVM argument : testng.mode.dryrun=true
Closes testng-team#1503 Users can now run their tests in a dry run mode by passing the JVM argument : testng.mode.dryrun=true
@sharimo1 - This is now available in TestNG 6.14-SNAPSHOT. To run tests in dry mode, please use the JVM argument |
TestNG Version
Expected behavior
I guess this is a feature request rather than a bug, but I saw in the testng-users questions that other people have this issue too. Please consider adding a no-execute option - one that will list the tests that will execute in the order they would execute without actually executing them.
This could be useful in cases such as:
Actual behavior
Is the issue reproductible on runner?
Test case sample
The text was updated successfully, but these errors were encountered: