Clear Meteor installation message for CI

Hello guys, I thought I would find this post somewhere but I couldn’t.
I just set up CI for Meteor on CircleCI but the problems is I got too much messages in the console and cannot see the tests result after the command

meteor test --once --driver-package dispatch:mocha --port 3100


Downloading meteor-tool@1.4.1_1...        [===========             ] 46% 1.2s                                                                             
Downloading meteor-tool@1.4.1_1...        [===========             ] 46% 1.2s                                                                             
Downloading meteor-tool@1.4.1_1...        [===========             ] 46% 1.2s
Downloading meteor-tool@1.4.1_1...        [===========             ] 46% 1.2s
Downloading meteor-tool@1.4.1_1...        [===========             ] 46% 1.2s
...
Extracting meteor-tool@1.4.1_1...         /
Extracting meteor-tool@1.4.1_1...         -
...
Updating package catalog                  /
Updating package catalog                  /
Updating package catalog                  /
...
Building for os.linux.x86_64              \
Building for os.linux.x86_64              \

and much others, do you know how to get rid of them ?
I searched for option in the meteor help command but couldn’t find the good one.

1 Like

@voyag3r Perhaps you could filter out stdout of meteor test command?

This code is very far from perfect but it may do the job until you figure out something better :wink:
I tested it locally and it worked.

const spawn = require('child_process').spawn;
let showOutput = false;
const textToFind = "SKIPPING CLIENT TESTS BECAUSE TEST_BROWSER_DRIVER ENVIRONMENT VARIABLE IS NOT SET"
const proc = spawn("meteor", ["test", "--once", "--driver-package", "dispatch:mocha", "--port", "3000"]);

proc.stdout.on('data', (data) => {
  if(!showOutput && data.toString().indexOf(textToFind) > -1){
  	showOutput = true;
  }
  if(showOutput){
  	console.log(`${data}`)
  }
});

You can save the code provided in a file and run it with node

OK Thanks I’ll try this ! Keep you updated if I managed what I am searching for