Tag Archives: testability


IGlimpsePlugin – Replacing HttpApplication with HttpContextBase

In an effort to try and give the community as much time to respond as possible, if you have noticed already IGlimpsePlugin has had some changes made to it. These changes will go out with release 0.83+.

It is not our intention to make this a pain for people who have already created plugins, but we really felt that this was a change that needed to happen sooner rather than later.

In an effort to ensure that Glimpse is rock solid and “future proof” we have been working hard at getting our test coverage up. In the process of doing this we found that having plugins (IGlimpsePlugin) depend on HttpApplication was a mistake. HttpApplication limits the ability to unit test plugins as it virtual requires us to have a real context.

Obviously this isn’t good for testing and what we should have depended on in the first place is HttpContextBase. HttpContextBase can easily be mocked and hence allows our plugins testable. In the long run this is also good for 3rd party plugin developers as it means that you can easily test as well.

A release will be coming within the next week and we would encourage any developers who have created plugins to adjust their code to cater for the coming change.

Moving forward we don’t anticipate any more changes that any more changes will occur, but this is always a possibility as we are still officially in Beta.

If you have any feedback or comments please let us know. We really do want to make Glimpse the best possible tool and really help facilitate people solving real problems.