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

[Core][Tests] Add basic ProgressMonitor tests #7255

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sevoku
Copy link
Member

@sevoku sevoku commented Feb 27, 2019

This PR adds more tests for progress monitors. Some tests are based on assumptions that are not necessarily right and need clarification. See: #7256.

Assert.That (mainTask.Progress, Is.EqualTo (expectedMainProgress).Within (taskProgressTestPrecision));
Assert.That (monitor.Progress, Is.EqualTo (expectedMainProgress).Within (taskProgressTestPrecision));

monitor.EndTask ();
Copy link
Member

Choose a reason for hiding this comment

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

There should be a Step() call after EndTask()

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a main part of the problem I described in #7256, in order to reflect child progress in the monitor, this step should not be required and is not obvious. If this is required, we need to find a way to synchronize that.

@Therzok
Copy link
Contributor

Therzok commented Aug 21, 2019

Can we add the non-failing tests to master and keep the failing one in this PR?

Base automatically changed from master to main March 9, 2021 14:17
@akoeplinger akoeplinger changed the base branch from main to master March 15, 2021 17:02
Base automatically changed from master to main March 15, 2021 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants