-
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
question: how does --pathname work? #28
Comments
so suppose the cwd is I decided to go with |
yeah, I'm putting my "built" test file in JS = $(wildcard index.js lib/*/*.js)
STYL = $(wildcard lib/*/*.styl)
TESTS = $(filter-out test/index.js, $(wildcard test/*.js))
TEST_ENTRY = test/index.js
test: build/tests.js
@$(NODE) $(BIN)/duo-test \
--build $^ \
--reporter spec \
phantomjs
build/tests.js: $(TESTS) $(TEST_ENTRY)
@mkdir -p $(dir $@)
@$(BIN)/duo \
--root . \
--development \
$(TEST_ENTRY) > $@
$(TEST_ENTRY): $(JS) $(TESTS)
@echo '// GENERATED FILE. DO NOT EDIT.' > $@
@$(foreach test, $(TESTS), echo 'require("./$(test)");' >> $@;)
.PHONY: test |
@stephenmathieson yup, but most devs won't do that and get confused i think. (btw nice Makefile haha) |
@matthewmueller can we close? |
yep! |
Playing around with
duo-test(1)
. Really cool, still think it needs more docs though. Maybe just a getting started section.Question about how you use
pathname
. It seems like you build your test files intobuild.js
, so something like:So how does
--pathname
apply?The text was updated successfully, but these errors were encountered: