Comments (5)
On the Jenkins Server?
from nof5.
xunit-support for nof5, so that can jenkins is able to handle it;)
from nof5.
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.
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.
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 intoprocess.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)
- Can't establish socket connection when not accessed via localhost HOT 1
- Use webpack-dev-middleware HOT 4
- nof5 crashes after alamid's shared tests HOT 1
- nof5 slows down with webpack HOT 1
- Recreate bundle only on change
- nof5_assets
- Validate JS
- Publish to npm-registry HOT 1
- Improve lib-detection HOT 1
- Params
- silent mode
- nof5 requires vm-browserify on windows HOT 4
- Re-running of tests don't work HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nof5.