Uh oh!
There was an error while loading. Please reload this page.
Base class data rows should not be executed - #546
Merged
Jayarani garg (jayaranigarg) merged 6 commits intoJan 11, 2019
Conversation
| else | ||
| { | ||
| UTF.ITestDataSource[] testDataSources = this.testMethodInfo.GetAttributes<Attribute>(true)?.Where(a => a is UTF.ITestDataSource).OfType<UTF.ITestDataSource>().ToArray(); | ||
| UTF.ITestDataSource[] testDataSources = this.testMethodInfo.GetAttributes<Attribute>(false)?.Where(a => a is UTF.ITestDataSource).OfType<UTF.ITestDataSource>().ToArray(); |
Contributor
There was a problem hiding this comment.
Can we add tests?
Jayarani garg (jayaranigarg)
requested a review
from Abhishek Kumawat (abhishkk)January 10, 2019 06:12
| // 4 tests of BaseClass - 3 datarow result and 1 parent result | ||
| // 3 tests of DerivedClass - 2 datarow result and 1 parent result | ||
| // Total 7 tests - Making sure that DerivedClass doesn't run BaseClass tests | ||
| this.ValidatePassedTestsCount(7); |
Contributor
There was a problem hiding this comment.
This is little confusing.
We should rather run only the DerviedClass tests using filter maybe and then check for only that.
We can keep this one as well.
MemberAuthor
There was a problem hiding this comment.
Didn't realize the confusion. Added new test.
| { | ||
| this.InvokeVsTestForExecution(new string[] { TestAssembly }, testCaseFilter: "FullyQualifiedName~DerivedClass"); | ||
| this.ValidatePassedTestsContain( |
Contributor
There was a problem hiding this comment.
Shouldn't this validation change after using the filter ?
MemberAuthor
There was a problem hiding this comment.
By mistake added filter in first test.
Sarabjot Singh (singhsarab)
approved these changes
Jan 10, 2019
This was referenced Aug 4, 2025
This was referenced Oct 7, 2025
This was referenced May 1, 2026
This was referenced May 14, 2026
This was referenced Jun 3, 2026
This was referenced Jun 25, 2026
This was referenced Aug 7, 2026
This was referenced Sep 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#458
Need to add tests.