Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Conversation

@lewurm
Copy link

@lewurm lewurm commented Feb 12, 2018

Attributes like [TestCase] execute the same test method multiple
times, therefore there could be a clash in lookupTable when adding
more elements to it.

Attributes like `[TestCase]` execute the same test method multiple
times, therefore there could be a clash in `lookupTable` when adding
more elements to it.
@lewurm lewurm requested review from luhenry and spouliot February 12, 2018 21:55
Copy link

@spouliot spouliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 and @lewurm confirmed it fix the issue with monotouch-test :)

Copy link
Member

@akoeplinger akoeplinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced we need this change (see Slack convo).

public void Set (TestExecutionContext context, long startTicks, TestResult result) {
var frame = new Tuple<TestExecutionContext, long, TestResult>(context, startTicks, result);

var name = result.FullName + "_" + result.Test.FullName + "_" + result.GetHashCode ();
Copy link
Member

@akoeplinger akoeplinger Feb 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

result.FullName and result.Test.FullName have the same value for parameterized tests (and it correctly includes the parameter value).

Additionally you're not changing the retrieval logic in HandleUnhandledExc () so this would fail when an exception does occur. nevermind, misread.

@akoeplinger akoeplinger merged commit 0dc7716 into mono:master Feb 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants