lp:~simone.busoli/nunitv2/async-support-void-and-task-return-types
Created by
Simone Busoli
and last modified
- Get this branch:
- bzr branch lp:~simone.busoli/nunitv2/async-support-void-and-task-return-types
Only
Simone Busoli
can upload to this branch. If you are
Simone Busoli
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Charlie Poole: Approve
-
Diff: 4772 lines (+2739/-1381)54 files modifiedNUnitTests.v3.nunit (+15/-0)
build.bat (+124/-122)
nunit.sln (+280/-266)
scripts/nunit.build.targets (+5/-1)
scripts/nunit.common.targets (+11/-1)
scripts/nunit.package.targets (+2/-0)
src/ClientUtilities/util/ProcessRunner.cs (+2/-2)
src/ClientUtilities/util/RuntimeFrameworkSelector.cs (+4/-3)
src/ClientUtilities/util/Services/TestAgency.cs (+4/-4)
src/ConsoleRunner/nunit-console/ConsoleUi.cs (+6/-4)
src/GuiException/tests/Controls/TestCodeBox.cs (+1/-1)
src/GuiException/tests/Controls/TestErrorBrowser.cs (+1/-1)
src/GuiException/tests/Controls/TestErrorList.cs (+1/-1)
src/GuiException/tests/Controls/TestErrorToolbar.cs (+1/-1)
src/GuiException/tests/Controls/TestSourceCodeDisplay.cs (+1/-1)
src/NUnitCore/core/AsyncSynchronizationContext.cs (+45/-0)
src/NUnitCore/core/Builders/NUnitTestCaseBuilder.cs (+432/-421)
src/NUnitCore/core/NUnitAsyncTestMethod.cs (+79/-0)
src/NUnitCore/core/NUnitTestMethod.cs (+5/-5)
src/NUnitCore/core/Reflect.cs (+10/-1)
src/NUnitCore/core/TestMethod.cs (+33/-30)
src/NUnitCore/core/TestSuite.cs (+1/-2)
src/NUnitCore/core/nunit.core.build (+2/-0)
src/NUnitCore/core/nunit.core.dll.csproj (+227/-225)
src/NUnitCore/interfaces/RuntimeFramework.cs (+2/-0)
src/NUnitCore/tests-net45/NUnitAsyncTestMethodTests.cs (+109/-0)
src/NUnitCore/tests-net45/NUnitTestCaseBuilderTests.cs (+108/-0)
src/NUnitCore/tests-net45/nunit.core.tests.net45.build (+48/-0)
src/NUnitCore/tests-net45/nunit.core.tests.net45.csproj (+84/-0)
src/NUnitCore/tests/CoreExtensionsTests.cs (+2/-2)
src/NUnitCore/tests/DatapointTests.cs (+1/-1)
src/NUnitCore/tests/PlatformDetectionTests.cs (+14/-5)
src/NUnitCore/tests/RuntimeFrameworkTests.cs (+4/-3)
src/NUnitCore/tests/TestRunnerThreadTests.cs (+1/-1)
src/NUnitCore/tests/nunit.core.tests.csproj (+255/-253)
src/NUnitFramework/tests/CollectionAssertTest.cs (+1/-1)
src/NUnitFramework/tests/Constraints/CollectionConstraintTests.cs (+3/-3)
src/NUnitFramework/tests/Constraints/ComparisonConstraintTests.cs (+2/-2)
src/NUnitFramework/tests/Constraints/EqualConstraintTests.cs (+2/-2)
src/NUnitFramework/tests/Syntax/ArbitraryConstraintMatching.cs (+1/-1)
src/NUnitFramework/tests/Syntax/ThrowsTests.cs (+1/-1)
src/ProjectEditor/tests/Presenters/AddConfigurationPresenterTests.cs (+1/-1)
src/ProjectEditor/tests/Presenters/ConfigurationEditorTests.cs (+1/-1)
src/ProjectEditor/tests/Presenters/MainPresenterTests.cs (+1/-1)
src/ProjectEditor/tests/Presenters/PropertyPresenterTests.cs (+1/-1)
src/ProjectEditor/tests/Presenters/RenameConfigurationPresenterTests.cs (+1/-1)
src/ProjectEditor/tests/Presenters/SelectionStub.cs (+1/-1)
src/ProjectEditor/tests/Presenters/XmlPresenterTests.cs (+1/-1)
src/tests/test-assembly-net45/AsyncDummyFixture.cs (+56/-0)
src/tests/test-assembly-net45/AsyncRealFixture.cs (+289/-0)
src/tests/test-assembly-net45/test-assembly-net45.build (+42/-0)
src/tests/test-assembly-net45/test-assembly-net45.csproj (+72/-0)
src/tests/test-assembly/DatapointFixture.cs (+1/-1)
tools/nant/bin/NAnt.exe.config (+342/-6)
Related bugs
Bug #1057981: C#5 async tests are not supported | Wishlist | Fix Released |
Related blueprints
Branch information
Recent revisions
- 3431. By Simone Busoli <simone.busoli@vienna>
-
Support for building for .NET 4.5 and running async tests even when not targeting .NET 4.5 but as long as 4.5 is installed.
- 3430. By Simone Busoli <simone.busoli@vienna>
-
Fixed typo in error message.
Started adding additional tests for parameterized testcases. - 3429. By Simone Busoli <simone.busoli@vienna>
-
Improved handling of tests which are not supposed to be run
- 3428. By Simone Busoli <simone.busoli@vienna>
-
Replaced usages of Task.FromResult with Task.Run as the former create tasks which are already completed and may mistify the tests outcome
- 3424. By Simone Busoli <simone.busoli@vienna>
-
Introduced support for void async methods and cleaned up implementation.
- 3423. By Simone Busoli <simone.busoli@vienna>
-
First stab at making async test methods run correctly.
Currently only works with methods returning tasks, void async methods are quite trickier.
Also does not preserve exception stack traces and test discovery is poorly implemented.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:nunitv2