basho / cuttlefish

never lose your childlike sense of wonder baby cuttlefish, promise me?
Apache License 2.0
205 stars 124 forks source link

cuttlefish_unit {error,nonent} #144

Open joedevivo opened 10 years ago

joedevivo commented 10 years ago

If you try and load a schema file that doesn't exist, it'd be nice if we output the file you tried to load.

generate_templated_config

➜  riak_kv git:(bugfix/jd/multi-backend-action) ✗ ./rebar skip_deps=true eunit suites=riak_kv_schema_tests
==> riak_kv (eunit)
Compiled test/riak_kv_schema_tests.erl
======================== EUnit ========================
module 'riak_kv_schema_tests'
  riak_kv_schema_tests: basic_schema_test...[0.196 s] ok
  riak_kv_schema_tests: override_non_multi_backend_schema_test...[0.110 s] ok
  riak_kv_schema_tests: multi_backend_test...[0.103 s] ok
  riak_kv_schema_tests: commit_hooks_test...[0.093 s] ok
  riak_kv_schema_tests: datatype_compression_validator_test...[0.094 s] ok
  riak_kv_schema_tests: correct_error_handingling_by_multibackend_test...*failed*
in function cuttlefish_unit:render_template/2 (src/cuttlefish_unit.erl, line 20)
in call from cuttlefish_unit:'-generate_templated_config/4-lc$^0/1-0-'/2 (src/cuttlefish_unit.erl, line 14)
in call from cuttlefish_unit:generate_templated_config/4 (src/cuttlefish_unit.erl, line 14)
in call from riak_kv_schema_tests:correct_error_handingling_by_multibackend_test/0 (test/riak_kv_schema_tests.erl, line 283)
**error:{badmatch,{error,enoent}}

  [done in 0.747 s]
=======================================================
  Failed: 1.  Skipped: 0.  Passed: 5.
Cover analysis: /Users/joe/dev/basho/riak_kv/.eunit/index.html
ERROR: One or more eunit tests failed.
ERROR: eunit failed while processing /Users/joe/dev/basho/riak_kv: rebar_abort