Code Monkey home page Code Monkey logo

Comments (5)

matthaias avatar matthaias commented on June 18, 2024

On the Jenkins Server?

from nof5.

topa avatar topa commented on June 18, 2024

xunit-support for nof5, so that can jenkins is able to handle it;)

from nof5.

matthaias avatar matthaias commented on June 18, 2024

Is it a problem at the moment? The mocha tests are running with the xunit reporter too and jenkins is working with that file. Try it and if you have a problem with it tell me again, ok?

from nof5.

topa avatar topa commented on June 18, 2024

Hey @matthaias !

We're here in the nof5 repo. It is all about running tests on clients. The xunit reporter from mocha does not work on the client site, does it?
Check out the first words from Readme.md to get a short description about nof5.
But I can explain it to you tomorrow.

from nof5.

topa avatar topa commented on June 18, 2024

I've thought about the interface for xunit-file support:

  • nof5 should write a xunit file if an option --x or --xunit is given.
  • If --x or --xunit are given without a path nof5 should write the xunit-file into process.cwd() else to the given path.

But there is a problem, because nof5 is not able to know which clients must connect and send their results to complete the test. I don't see any other way than passing this information to nof5. I think this should be done with a special hook, probably something like: nof5.clients.hook.js. This is similar to the other existing hooks, e.g. for passing additional middleware for the browserify bundler. According to the current convention for hooks the nof5.clients.hook.js might looks like this:

  • If there is a file named nof5.client.hook.js in the test folder, than this file will be automatically used.
  • If there is an explicit path given than by an option --c or --clients than this file will be used.
  • The file should be a module exporting a function .use()
  • The .use() function returns an {} containing options.
  • These could be useful options:
    • clients: ["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.79 Safari/537.1", "Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1", "and so on"..]
    • timeout: number
  • I recommend to use the navigator.userAgent string as this will make a client unique

@matthaias what do you think about this?

from nof5.

Related Issues (14)

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.