GithubHelp home page GithubHelp logo

Test timed out again and again.. about testswarm HOT 5 CLOSED

 avatar commented on June 25, 2024
Test timed out again and again..

from testswarm.

Comments (5)

Krinkle avatar Krinkle commented on June 25, 2024

Which test framework are you using?

If you implemented a custom one, please consider submitting a PR so that I can review it for you and point out where it went wrong.

It sounds like you forgot to bind the proper handlers for either the ping, complete or submit events. As a result, even when the test is actually done, the inject script isn't being notified and as such keeps doing nothing until eventually the server discards the client when it still hasn't submitted any results. At this point the job is put back in the pool of pending tests for another client to run.

from testswarm.

 avatar commented on June 25, 2024

I'm using funcunit framework, I didn't wrote it yet in the inject.js because I didn't use it so far.. (I know its weird)

I'm using the steal.js to make my test from the framework funcunit. I thought that it would works at least a bit because its like the Qunit test no ?

I'm sorry if I ask too much, but I really don't know how to implement this new framework into testswarm.. :/

from testswarm.

JamesMGreene avatar JamesMGreene commented on June 25, 2024

It's like QUnit except that it has a dependency on Selenium. Does your TestSwarm setup now how to handle that?

from testswarm.

Krinkle avatar Krinkle commented on June 25, 2024

I haven't used FuncUnit specifically much, but in general, until you show some code, I can only recommend:

  • Move it to inject.js; Look at inject.js#section-qunit for how to write the small bridge you need to add. Add a similar one for FuncUnit.
  • Verify that you are loading TestSwarm's inject.js from your own TestSwarm server (not github, not swarm.jquery.org) in your test suite (jQuery example, MediaWiki example)

from testswarm.

jeff-harnois avatar jeff-harnois commented on June 25, 2024

I ran into a similar issue; mine turned out to be the order of the scripts. inject.js needs to be included last, so that it can register some hooks into the test, so if you are not careful with your script order (mine was because I had it in the wrong place using require) then the hook doesn't attach properly and won't ever fire back.

from testswarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.