Bug Tracker

Opened 13 years ago

Closed 12 years ago

#3062 closed bug (worksforme)

http://jquery.com/test not deterministic

Reported by: Tlalox Owned by: joern
Priority: major Milestone: 1.3
Component: qunit Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


It seems that the jQuery Test Suite isn't deterministic. At least it often shows different results each time I start the test (used Firefox/Camino, Safari/Webkit and Opera) under OS-X 10.5.3 (PowerPC).

See the corresponding WebKit Bug.

Change History (4)

comment:1 Changed 13 years ago by flesler

need: ReviewTest Case

Could you tell us, different in what way you mean ? You see tests failing.. or just taking longer ?

ajax module's tests do fail sometimes, due to synchronism edge cases. That's acceptable and you can just rerun adding ?ajax.

Please add some more detail.

comment:2 Changed 13 years ago by Tlalox

Sorry for the late reply, I haven't got an e-mail that there's an answer for this ticket - you should consider to active this feature in Trac.

So if ajax module's tests do fail "sometimes" (and this is what I and other have experienced) the whole test suit cannot be used to check whether a browser or the jQuery implementation works accurate. Is this interpretation correct?

Isn't one of the major requirement for a test that it is deterministic? And what benefit do you get from such tests?

comment:3 Changed 13 years ago by flesler

You should consult Joern about this, he maintains QUnit. Please drop him an email about this ticket, I'll reasign it to him and he'll decide whether this is fixable or should just be ignored.



comment:4 Changed 12 years ago by joern

Resolution: worksforme
Status: newclosed

Ajax tests don't use timesouts any more (not by default), making the overall testsuite much more reliable. Any other specific issues have to be discussed on their own.

Note: See TracTickets for help on using tickets.