-
Notifications
You must be signed in to change notification settings - Fork 8
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
I think default build path should be build/* #29
Comments
so you would have multiple builds ? |
i'm using multiple builds: $ tree -L 1 build
build
├── build.css # my styles
├── build.js # my actual "build"
├── components
└── tests.js # my built tests
1 directory, 3 files |
hmm ^ looks like you only want to include |
yep: test: build/tests.js
@$(NODE) $(BIN)/duo-test \
--build $^ \
--reporter spec \
phantomjs |
i'm fine with supporting multiple builds, but what's the use-case here ? |
well, i'm using im not sure what @matthewmueller wants with multiple builds, but i just thought i'd chime-in and give my 2¢ |
@yields actually not sure if this works in browser, but even in |
@matthewmueller yeah, multiple test files makes sense, but i don't think building multiple test files is a good approach. see this example makefile (specifically the basically, i generate edit: also see https://github.com/segmentio/facade/blob/master/test/index.js, which looks like it's just a hand-edited version of the above concept |
i agree with @stephenmathieson, seems like most users will have a single test file, since most components are really small or should be really small. |
Just wanting to weigh in here, as I'm having trouble getting started, and I think this library could be even easier to use. I think that I think you should need to specify the entry files you want to test, defaulting to $ duo-test phantomjs
# runs tests in test/*.js
$ duo-test phantomjs test.js
# runs tests in test.js This would remove the assumption of using |
And for what it's worth, even the small libraries that I write often have multiple files within a Thus, I don't think multiple entry files for testing necessarilly means a component isn't "small" anymore. |
i agree with @dominicbarnes on this, now i remember that's how |
That allows you to have multiple files in
test/
and just run:The text was updated successfully, but these errors were encountered: