Fitnesse Suite fails to execute tests

微笑、不失礼 提交于 2019-12-11 19:54:37

问题


I'm attempting to run a suite of Fitnesse tests however I keep getting the following error message.

Testing was interupted and results are incomplete. Test Pages: 0 right, 0 wrong, 0 ignored, 0 exceptions Assertions: 0 right, 0 wrong, 0 ignored, 0 exceptions

The two pages run fine by themselves however when the links are included on a suite page they don't appear to be getting detected.

Has anyone come across this before?


回答1:


When you include a page into another page only the text of the page is included, not the attributes. Pages marked as Suite do not execute as tests unless they are also marked as Test. If you mark your Suite page with the Test attribute as well your included tests may run (though this depends a lot on what is in those test pages of course!)

I'm also guessing that the two pages you are "linking" into the test are not underneath the suite page (i.e. SuitePage.TestPageOne; a.k.a. sub-wiki) but are elsewhere in the wiki (i.e. SomeOtherPage.TestPageOne). If this is the case you may also want to move your test pages so they are directly underneath your suite page. This is what is referred to as a sub-wiki. You can find out more about them here.

Hope That Helps




回答2:


Another possibility is that the "Prune" checkbox on the page properties got checked. It has a very similar impact. prune is intended to allow turning off sections of the suite so the don't run.

Interestingly enough, prune has no effect on child trees or nodes if they are run directly.



来源:https://stackoverflow.com/questions/913196/fitnesse-suite-fails-to-execute-tests

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!