lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
505 stars 117 forks source link

WIP in XUnit. #496

Closed felipeotarola closed 4 years ago

felipeotarola commented 4 years ago

Hi. I read a comment from lefthandedgoat in this [thread] (https://github.com/lefthandedgoat/canopy/issues/58) that WIP cannot be used with xUnit. Now the comment was from 2012 and my question is.

I have been looking in multiple places and tested different ways but with no luck :)

Thanks in advance,

lefthandedgoat commented 4 years ago

WIP is a test mode that is implemented and controlled by the canopy test runner. xUnit is its own test runner. Its a simple flag that gets turned on/off in a WIP test in canopy, so you could do that yourself in your test.

canopy.configuration.wipTest <- true at the start of your test, and set to false at the end.

This will slow your test down and attempt to put color markers around html elements that its about to interact with.

marking a test as WIP will only run it and other tests marked as WIP and skip all of the non-wip tests. You can achieve this by just running the tests you want in your test runner gui.

Hope this helps!

felipeotarola commented 4 years ago

This worked for me! Thank you for the help and the explanation