Alternatives to passing files to a test runner

circle.yml

#1

From the documentation https://circleci.com/docs/parallel-manual-setup#using-configuration-files-modifier I understand that test files are appended to the command I use to run my test runner.

I am using gulp, and unfortunately, gulp handles every argument as a task name.
So, for “gulp test file1 file2”, gulp will try to run 3 tasks instead of passing file1 and file2 as args for my “test” task.

Are there alternatives for passing the file names in CCI? Could I set the files as an environment variable?

Thanks!


#2

I’m having exactly the same issue. Trying to set up parallelization and ran into this problem.

Help?


#3

My workaround was to use a script file as a middle man.
It receives the files as args and save to a temporary file.
Then, gulp reads the temp file for the files list.

Sample code:


#4