Skip to content

Conversation

@jkingry
Copy link
Contributor

@jkingry jkingry commented Mar 12, 2018

Seems like at least most NUnit fixtures can be run in parallel

Added assembly level attributes so that all fixtures run in parallel by default, can be disabled on a per-fixture basis. My tun all tests time went from 133 seconds to 67 seconds, 50% faster

Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

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

This looks good, but I wonder why you've commented out the [assembly: Parallelizable(ParallelScope.Fixtures)]?

@@ -0,0 +1,3 @@
using NUnit.Framework;

//[assembly: Parallelizable(ParallelScope.Fixtures)] No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Did you mean to comment this?

@@ -0,0 +1,3 @@
using NUnit.Framework;

//[assembly: Parallelizable(ParallelScope.Fixtures)] No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

And this?

@@ -0,0 +1,3 @@
using NUnit.Framework;

//[assembly: Parallelizable(ParallelScope.Fixtures)] No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

And this?

@jkingry jkingry force-pushed the feature/parallelize-unit-tests branch from 675a831 to 38b7c77 Compare March 12, 2018 21:20
@jkingry
Copy link
Contributor Author

jkingry commented Mar 12, 2018

@asbjornu I messed up and committed the code I was running to double check the timing without the attributes.
Fixed that, and used AssemblyInfo.cs as the file for assembly attributes as I see that is what's being done in other projects in the solution.

@asbjornu
Copy link
Member

@jkingry: I see. Unfortunately, bringing those back broke the build. Could you take a look at it, please?

@jkingry
Copy link
Contributor Author

jkingry commented Mar 12, 2018 via email

@jkingry jkingry changed the title Paralllize Unit Tests Parallelize Unit Tests Mar 13, 2018
@jkingry jkingry force-pushed the feature/parallelize-unit-tests branch from 38b7c77 to a1e6914 Compare March 13, 2018 02:59
@asbjornu asbjornu mentioned this pull request Feb 15, 2019
@arturcic arturcic modified the milestone: 5.0.0 Feb 20, 2019
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.

3 participants