What new features would you like to have in TestNG? #3037
Replies: 18 comments 57 replies
-
To get this started, TestNG should support Java Streams in it's data driven tests. This way we can now enhance our tests to have the |
Beta Was this translation helpful? Give feedback.
-
@krmahadevan I think you should post on the mailing list if you want more answers |
Beta Was this translation helpful? Give feedback.
-
Tag support for the test. Reason - In xml let say we have n number of test but we want to run subset of test matching to some condition. if we have tag mechanism then we already provided tag to the test and thus we can pass the tag from the command line without need to make any change to the xml or code. This is similar to what we can do in cucumber/karate. |
Beta Was this translation helpful? Give feedback.
-
I am not sure if TestNg can generate a playlist for unit test while building a project just like NUnit, MsTest do. This way we have the ability to known what is going to run, run specific test from playlist on demand, save playlist and run it when needed. I understand it would require a plugin for each different IDE but this will be a great development unless we have the feature already. |
Beta Was this translation helpful? Give feedback.
-
Technically its not a feature request but a change request |
Beta Was this translation helpful? Give feedback.
-
There should be a configurable option to treat the test run count as '1' or the data-size while using data provider. When treating the TC count as '1', Final TC Status should be: |
Beta Was this translation helpful? Give feedback.
-
Distributed execution capabilities i.e. splitting TCs across multiple nodes. Everyone who uses TestNG for their API Tests ends up running their tests on a single node with parallel threads. But it limits the performance when TCs are in thousands and need to be distributed across multiple nodes. Alternatively, many create multiple suite files which are run on multiple machines in separate TestNG processes effectively making them separate runs and reported separately. |
Beta Was this translation helpful? Give feedback.
-
Enriching it's Assertion APIs, making it fluent, which currently makes us look elsewhere for better Assertion libraries. |
Beta Was this translation helpful? Give feedback.
-
I need an option to skip execution of @BeforeMethod against certain set of tests. |
Beta Was this translation helpful? Give feedback.
-
WhatI'd like to suggest at least some control over Why
HowWhat I'd like to get is something similar to:
or
or
or
or anything which would rerun annotated method everytime a test is retried, e.g. using IRetryAnalyzer or any other retry mechanism. I guess For the case of NxM data object, if N1<N tests failed and are to be retried, I still suggest generating whole set of data by running the method, but pick only those data line where tests failed. For parallel execution on dataProvider level it may get tricky getting the order, but I guess internal indexing of returned objects might help (Sorry if it's already the case, I didn't check) Things to consider
|
Beta Was this translation helpful? Give feedback.
-
I would be happy to see more ways of controlling the Before/AfterMethod configuration. |
Beta Was this translation helpful? Give feedback.
-
As a user I should be able to associate context to listener invocation. Currently TestNG allows me to define listeners globally in a direct way (via service loaders or via the Maybe it would make sense for us to apply the listeners defined via the For e.g, lets say there's a test class that looks like below @Listeners({DataProviderListener.class})
public class MyTestCase {
// more test code
} TestNG should invoke the listener |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
There is an requirement we discussed before. A DataProvider is defined that include a data set (A, B ,C ,D, E ... ) and we want to launch test cases testFunc(id) in multithreads (max thread is 3). interface is like:
|
Beta Was this translation helpful? Give feedback.
-
Do we have a page that include all features that provides via TestNG specific version? I want to check what big features that TestNG 5.0 to 7.0 can provide and then I maybe use these features in my project to save some code or make test cases simple. |
Beta Was this translation helpful? Give feedback.
-
Can we config invocation_count on Suite or Test level. currently, it just can configured on TestMethod level(@test).
|
Beta Was this translation helpful? Give feedback.
-
Feature: Being able to run a single test method using a command-line parameter, or by using a temporary flag in the test code itself. E.g. something similar to Jest Rationale:
Usecase:
What I need:
Hope this makes sense. Let me know what you think and/or if I am missing and existing feature that can help me here! Note: IntelliJ UI can do this quite nicely (by internally creating a TestNG xml config). This covers some usecases, but fails to address cases when I am working on remote development environment, where I cannot leverage IntelliJ Run feature. |
Beta Was this translation helpful? Give feedback.
-
can we implement a way to skip/ignore some test from command line: Feature: we can skip/ignore some test execute by some filter, (suite name, test name, class name or method name etc)Example:
running command: the test should just execute:
the other class and method should be skip/ignore. Usecase:we have complex test suite include same test method with different parameters to test different traffic scenario. when some tests failed in CI automation, but we want to test mannuely, we don't want to change any soure code (test suit file and test cases, for there are in different repos), we only change the command line in CI Job to test if it works. |
Beta Was this translation helpful? Give feedback.
-
Have you ever wished that you had "feature x" in TestNG? Now is the time to call them out ?
Add some details of what you would like to have in TestNG in it's newer versions ?
Beta Was this translation helpful? Give feedback.
All reactions