-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: You must specify a number of files greater than 1 to split your tests across. #69
Comments
I don't have much familiarity with Circle. The number of nodes available to run your tests is variable per-run? If so, I would recommend parallelizing within a given node instead of across the variable number of nodes. It will give you more consistent results and make debugging easier (less environmental variables). |
I'm not super familiar with it either, but this is my understanding. You pay for containers, and all of your projects share these. If one is used it waits until another opens up. You can set it on a per repo(project) setting to use more if available. I only have 2 containers available, if a different project uses one (and is only provisioned one) then my ember project only has one available and this will happen (I think) I found this blog post so hopefully someone else will run into this with circle who is more familiar
How would I go about this? |
After working with the author of that blog post we confirmed that it is indeed working (once I switched to 2 containers for my project) and it is splitting the tests up correctly. To check this open the However the issue still arises, I think if split does get passed 1, it should just run it as if it wasn't split rather than failing the tests |
I suppose I can relax this to just be a warning. The intent was to make sure developers know when they're actually splitting/reducing the number of tests being run, but an exception may be a bit too disruptive.
Use the |
@Frozenfire92 we haven't had any issues using exam on Circle. Here's our general:
branches:
only:
- master
- /.*_ci$/
machine:
node:
version: 4.7.0
dependencies:
cache_directories:
- "/opt/circleci/nodejs/v4.7.0/lib/node_modules"
- "/opt/circleci/nodejs/v4.7.0/bin"
- "node_modules"
- "bower_components"
pre:
- type ember || npm -g install ember-cli
- type bower || npm -g install bower
override:
- npm install
- bower install
test:
override:
- mkdir -p $CIRCLE_TEST_REPORTS/ember:
parallel: true
- node_modules/ember-cli/bin/ember exam ci --split=$CIRCLE_NODE_TOTAL --partition=$((CIRCLE_NODE_INDEX+1)) --reporter xunit --silent > $CIRCLE_TEST_REPORTS/ember/junit$CIRCLE_NODE_INDEX.xml:
parallel: true
timeout: 1200 |
Ah you're saying the error message is unhelpful? I think it's fine, as you'd configure the Basically in the case of single containers you'd just use |
👍 to make this a warning, so that we can do e.g. |
This has been changed in |
Trying to integrate this (without setting parallel on circle first) causes this error. However I think this is undesired as circle may only provision 1 container for you if they are being used elsewhere
Here is part of my circle.yml
The text was updated successfully, but these errors were encountered: