Skip to content
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

Enable Dataprovider failures to be considered. #2748

Merged
merged 1 commit into from
Apr 13, 2022

Conversation

krmahadevan
Copy link
Member

Closes #217

Enable a data provider to propagate its failure
And be considered as a test failure.

This can be done at an individual data provider
level by using the “@dataProvider” annotation’s new
attribute “propagateFailureAsTestFailure”

This can be done at the entire TestNG level by using
the configuration parameter
“-propagateDataProviderFailureAsTestFailure true”

Also regrouped the data provider test into single
test class.

Fixes #217 .

Did you remember to?

  • Add test case(s)
  • Update CHANGES.txt
  • Auto applied styling via ./gradlew autostyleApply

We encourage pull requests that:

  • Add new features to TestNG (or)
  • Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.

Note: For more information on contribution guidelines please make sure you refer our Contributing section for detailed set of steps.

Closes testng-team#217

Enable a data provider to propagate its failure
And be considered as a test failure.

This can be done at an individual data provider 
level by using the “@dataProvider” annotation’s new
attribute “propagateFailureAsTestFailure”

This can be done at the entire TestNG level by using
the configuration parameter 
“-propagateDataProviderFailureAsTestFailure true”

Also regrouped the data provider test into single 
test class.
@krmahadevan krmahadevan merged commit b5b3e1d into testng-team:master Apr 13, 2022
@krmahadevan krmahadevan deleted the fix_217 branch April 13, 2022 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

exception in DataProvider doesn't fail test run
2 participants