webrtc / KITE

KITE is a test engine designed to test WebRTC interoperability across browsers
Apache License 2.0
468 stars 126 forks source link

Can you run all test cases you have in config folder, with one command ? #95

Closed valdrinnz closed 4 years ago

valdrinnz commented 4 years ago

In my case I have three tests in config folder like this:

If you want to run first test you just go to folder which is your test and type: r config\js.yourfirsttest.json and for the second test: r config\js.yoursecondtest.json

But I want to run all the tests with one command, is that possible in KITE ?

namvuCosmo commented 4 years ago

Hi,

Sorry but currently it's not possible, I'll think about including this in our next update.

namvuCosmo commented 4 years ago

Implemented

valdrinnz commented 4 years ago

Can u please tell us which is that command ?

namvuCosmo commented 4 years ago

Oh sorry I misunderstood the issue. You still can't use PATH_TO_DIRECTORY to run all config files inside, but you can put multiple files as parameters to run.

namvuCosmo commented 4 years ago

Hi @valdrinnz , I added the code to run with the whole directory.

You can either:

linux/mac:

java -Dkite.firefox.profile="$KITE_HOME"/third_party/firefox-h264-profiles/ -cp "$KITE_HOME/KITE-Engine/target/kite-jar-with-dependencies.jar:target/*" org.webrtc.kite.Engine configs/iceconnection.apprtc.config.json

It should also find all the test.json in the sub-folders as well, so your folder can be:

tests/
|-- test0.json
|-- TS1/
|    |-- test1.json
|    |-- test2.json
|-- TS2/
|    |-- test3.json
|    |-- test4.json
|....

Let me know if you have any issue

valdrinnz commented 4 years ago

This is nice feature ! I'm gonna try it as soon as I get last version, it should work fine. Thank you for your response.