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 meta testing #32

Merged
merged 2 commits into from
Nov 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 23 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,40 @@ PROJECT = cowboy_swagger

CONFIG ?= test/test.config

DEPS = jiffy trails

dep_jiffy = git https://github.com/davisp/jiffy.git 0.14.3
dep_trails = git https://github.com/inaka/cowboy-trails.git 0.0.2

DEPS = katana jiffy trails
SHELL_DEPS = sync

dep_sync = git https://github.com/inaka/sync.git 0.1.3

TEST_DEPS = xref_runner mixer shotgun

dep_sync = git https://github.com/inaka/sync.git 0.1.3
dep_jiffy = git https://github.com/davisp/jiffy.git 0.14.3
dep_trails = git https://github.com/inaka/cowboy-trails.git 0.0.2
dep_xref_runner = git https://github.com/inaka/xref_runner.git 0.2.2
dep_mixer = git https://github.com/inaka/mixer.git 0.1.4
dep_shotgun = git https://github.com/inaka/shotgun.git 0.1.12
dep_katana = git https://github.com/inaka/erlang-katana.git 07efe94

PLT_APPS := trails cowboy
DIALYZER_DIRS := ebin/
DIALYZER_OPTS := --verbose --statistics -Werror_handling \
-Wrace_conditions
DIALYZER_DIRS := ebin/ test/
DIALYZER_OPTS := --verbose --statistics -Wunmatched_returns

Copy link
Member

Choose a reason for hiding this comment

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

According to Compiler:

warning: overriding commands for target `shell'

Copy link
Member

Choose a reason for hiding this comment

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

According to Compiler:

warning: overriding commands for target `shell'

include erlang.mk

# Commont Test Config
CT_DEPS = xref_runner
LOCAL_DEPS := tools compiler syntax_tools common_test inets test_server dialyzer wx
TEST_ERLC_OPTS += +debug_info
CT_SUITES = cowboy_swagger cowboy_swagger_handler
CT_OPTS = -cover test/cowboy_swagger.coverspec -erl_args -config ${CONFIG}

SHELL_OPTS = -s sync

quicktests: app
@$(MAKE) --no-print-directory app-build test-dir ERLC_OPTS="$(TEST_ERLC_OPTS)"
$(verbose) mkdir -p $(CURDIR)/logs/
$(gen_verbose) $(CT_RUN) -suite $(addsuffix _SUITE,$(CT_SUITES)) $(CT_OPTS)

test-build-plt: ERLC_OPTS=$(TEST_ERLC_OPTS)
test-build-plt:
@$(MAKE) --no-print-directory test-dir ERLC_OPTS="$(TEST_ERLC_OPTS)"
$(gen_verbose) touch ebin/test

plt-all: PLT_APPS := $(ALL_TEST_DEPS_DIRS)
plt-all: test-deps test-build-plt plt

dialyze-all: app test-build-plt dialyze
Loading