Skip to content

Commit

Permalink
#6 have a test plan
Browse files Browse the repository at this point in the history
  • Loading branch information
bearmug committed Feb 2, 2019
1 parent 1402020 commit 3043129
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
11 changes: 9 additions & 2 deletions test/epgsql_migrations_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
-compile(export_all).

all() -> [ migrate_one_script_test
, migrate_few_scripts_test
, incremental_migration_test
, migrate_few_scripts_test
, incremental_migration_test
, wrong_initial_version_test
, migration_gap_test
, transactional_migration_test
].

migrate_one_script_test(Opts) ->
Expand Down Expand Up @@ -80,6 +83,10 @@ incremental_migration_test(Opts) ->
{ok, _,[{<<"1">>}]},
epgsql:squery(Conn, "select count(*) from fruit where color = 'yellow'")).

wrong_initial_version_test(_Opts) -> ok.
migration_gap_test(_Opts) -> ok.
transactional_migration_test(_Opts) -> ok.

epgsql_query_fun(Conn) ->
fun(Q) ->
Res = epgsql:squery(Conn, Q),
Expand Down
19 changes: 9 additions & 10 deletions test/pure_migrations_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@

-compile(export_all).

all() -> [
invalid_location_test,
no_number_filename_test,
invalid_format_filename_test,
regular_upgrade_test,
rewrite_version_test,
faulty_script_test,
start_not_from_zero_test,
versions_gap_test,
negative_version_test
all() -> [ invalid_location_test
, no_number_filename_test
, invalid_format_filename_test
, regular_upgrade_test
, rewrite_version_test
, faulty_script_test
, start_not_from_zero_test
, versions_gap_test
, negative_version_test
].

invalid_location_test(_Opts) ->
Expand Down

0 comments on commit 3043129

Please sign in to comment.