-
Notifications
You must be signed in to change notification settings - Fork 654
Parallelize Unit Tests #1384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallelize Unit Tests #1384
Conversation
There was a problem hiding this 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)] |
There was a problem hiding this comment.
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)] |
There was a problem hiding this comment.
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)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And this?
675a831
to
38b7c77
Compare
@asbjornu I messed up and committed the code I was running to double check the timing without the attributes. |
@jkingry: I see. Unfortunately, bringing those back broke the build. Could you take a look at it, please? |
Yeah. I was afraid of that. Will look into it.
…On Mon, Mar 12, 2018 at 5:36 PM Asbjørn Ulsberg ***@***.***> wrote:
@jkingry <https://github.com/jkingry>: I see. Unfortunately, bringing
those back broke the build. Could you take a look at it, please?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1384 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAG0-Yv1KluS6ZLw9RetUstgfXiIs1ZWks5tdupVgaJpZM4SnPHh>
.
|
38b7c77
to
a1e6914
Compare
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