Skip to content
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

Add .test target for packages #3242

Merged
merged 1 commit into from
Apr 29, 2015

Conversation

andralex
Copy link
Member

No description provided.

@@ -380,10 +380,16 @@ moduleName=$(subst /,.,$(1))
unittest/%.run : $(ROOT)/unittest/test_runner
$(QUIET)$(RUN) $< $(call moduleName,$*)

# target for quickly running a single unittest (using static phobos library)
# Target for quickly running a single unittest (using static phobos library).
# For example: "make std/algorithm/mutation.test"
%.test : %.d $(LIB)
$(DMD) $(DFLAGS) -main -unittest $(LIB) -defaultlib= -debuglib= -L-lcurl -run $<
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add -cov flag

@CyberShadow
Copy link
Member

Auto-merge toggled on

@andralex
Copy link
Member Author

Auto-merge toggled off

@andralex
Copy link
Member Author

lemme investigate dat cov

@andralex andralex force-pushed the unittest-package-at-a-time branch from 08c96b6 to e49f47f Compare April 29, 2015 02:52
@andralex
Copy link
Member Author

added -cov

@WalterBright
Copy link
Member

Auto-merge toggled on

WalterBright added a commit that referenced this pull request Apr 29, 2015
@WalterBright WalterBright merged commit 326351d into dlang:master Apr 29, 2015
@jacob-carlborg
Copy link
Contributor

I would have expected make test std/algorithm/mutation.d. Seems like this would work better with tab completion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants