sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #33879
[Question #269560]: Sikuli test succeeding even though it should fail
New question #269560 on Sikuli:
https://answers.launchpad.net/sikuli/+question/269560
Hi,
I've set up a few tests. However, I intentionally set up one test to fail. When I run all those test an xml report gets created. What is funny, all 6 tests pass, despite the 6th one should fail, since it's asserting for a non existent image.
class TestRiggedToFail(unittest.TestCase):
def testFail(self):
wait(2)
assert exists("1437632092515.png")
1437632092515.png won't be seen on the screen, as it is a photo from the internet.
How and why does this assert pass, and in my report all tests are successful?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.