Altering test results

Aug 8, 2012 at 12:54 AM

On a related note to the other question about test results.

In my extension I would like to be able to mark my test as failed, even though it is reported as passed.

 

The problem is that SilverlightResultHandler gets invoked first, before my handler has a chance to inspect/alter the results.

 

Is there a way to put my handler first so that I can do it? If not, that's a feature request.

Coordinator
Aug 8, 2012 at 9:30 AM

As far as I know, StatLight uses an eventaggregator.
You might be able to catch an earlier event in your plugin.

If you can get a hold of the eventaggregator itself you can change the order of the listeners (with some reflection probably).

If this is not possible, I suggest you make a custom build of AgUnit or StatLight.
Source is available at https://github.com/sdekock/AgUnit and https://github.com/sdekock/StatLight 

I don't have any time to spare until the end of next week, after that I'll be glad to help you out.

Aug 8, 2012 at 9:32 AM

I did that with reflection

On Aug 8, 2012 7:31 PM, "SDeKock" <notifications@codeplex.com> wrote:

From: SDeKock

As far as I know, StatLight uses an eventaggregator.
You might be able to catch an earlier event in your plugin.

If you can get a hold of the eventaggregator itself you can change the order of the listeners (with some reflection probably).

If this is not possible, I suggest you make a custom build of AgUnit or StatLight.
Source is available at https://github.com/sdekock/AgUnit and https://github.com/sdekock/StatLight

I don't have any time to spare until the end of next week, after that I'll be glad to help you out.

Read the full discussion online.

To add a post to this discussion, reply to this email (agunit@discussions.codeplex.com)

To start a new discussion for this project, email agunit@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com