Bug Tracker

Modify

Ticket #3062 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

Description

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

comment:1 Changed 5 years ago by flesler

  • need changed from Review to Test 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 5 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 5 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.

Thanks

joern.zaefferer[at]googlemail[dot]com

comment:4 Changed 4 years ago by joern

  • Status changed from new to closed
  • Resolution set to worksforme

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.