Unit-testing SharePoint workflows -


i wondering if there existing solutions unit-testing windows workflow foundation workflows run in sharepoint context.

unfortunately, sharepoint libraries not designed possibility of testing or mocking in mind.
such workflows tightly bound sharepoint classes require sharepoint instance installed , running, absolutely ineffective testing.

following list of challenges faced while trying unit-test existing workflow:

  • workflows make calls static sharepoint objects;
  • some eventargs classes necessary mocking internal sharepoint assembly;
  • workflows may use special sharepoint workflow activities in turn make calls sharepoint;
  • there no convenient api starting workflow in sharepoint context , monitoring state.

i solved these problems workflow had test using microsoft moles , someday release solution open source.
meanwhile, i'm wondering if of ever unit-tested sharepoint workflows. if so, i'd hear solutions these (and other) problems. i'd know if library, if release it, of interest you.

thanks.

unit testing workflows? in general unit-testing sharepoint rather hard.

i have used 2 frameworks sharepoint:

neither of these frameworks able test microsoft sharepoint activities or in particular, workflows made sharepoint designer sealed , should consider them "working" anyways - microsoft made them, they're perfect! :-)

your library of great interest there not many people trying unit test sharepoint due sharepoints nature in eyes: use lot of built in functionality , customize , and add functionality - want test/unit test own code.

sorry, can't give specifics on problems faced - typemock more powerful use lot older , mature - pex&moles fun though (i found tutorial sharepoint rather nice: unit testing sharepoint foundation microsoft pex , mole.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -