-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Skip
attribute on MultiNodeFact does not work
#1088
Comments
@Aaronontheweb looking at the source for This is returning public class MultiNodeFactAttribute : FactAttribute
{
public static Lazy<bool> ExecutedByMultiNodeRunner =
new Lazy<bool>(() =>
{
var args = Environment.GetCommandLineArgs();
if (args.Length == 0) return false;
var firstArg = args[0];
return firstArg.Contains("Akka.MultiNodeTestRunner")
|| firstArg.Contains("Akka.NodeTestRunner");
});
public override string Skip
{
get
{
return ExecutedByMultiNodeRunner.Value
? null
: "Must be executed by multi-node test runner";
}
set { base.Skip = value; }
}
} |
Just started looking at this as well :) @schatekar, a null value means test should be run, and non-null means it should be skipped. |
I think I know how to fix this. If you are not fixing it I can take a crack
|
It's all yours :) |
You guys are awesome :) |
This is more involved than I had imagined. I would give it another try over the weekend. |
I know that feeling well, my friend. |
I gave a try to this as well, I guess because is less intimidating than the others :), it looks like that removing the null is not enough. I could get the runner to skip the multinode facts checking the attribute in the OnMessage of the Akka.MultiNodeTestRunner.Discovery. It looks like that the discovery process completely ignores the Skip (overridden or not). |
@barambani I did not get a message that you have worked on the issue as well. I just went ahead and submitted my fix without knowing that you too have submitted a fix. |
@schatekar no problem, I will close mine. |
@barambani Don't close yours just yet. I would leave it to the project leads to accept the best PR |
@schatekar I looked at your solution and passes all the tests, also brings the skip reason up to the top level to log it. I like it more than mine as well. Mine was a late night hack. |
#1088 MultiNode tests can now be skipped by specifying a SkipReason
Still ran the tests I wanted to skip :\
The text was updated successfully, but these errors were encountered: