Commit Graph
347 Commits
Author SHA1 Message Date
José Valim da50584060 Deprecate def/4 and friends in favor of def/2 with unquote and friends 2013-08-23 19:42:20 +02:00
José Valim 0510512375 Deprecate to_binary in favor of to_string
We also rename Binary.Chars to String.Chars.

As Binary.Chars was the protocol used for interpolation,
it is semantically correct to have a protocol that works
on strings, instead of raw binaries.
2013-08-22 12:19:30 +02:00
José Valim 820d0cb9a0 Print failures for ExUnit as soon as they come 2013-08-22 11:12:18 +02:00
José Valim 9385e59c29 Provide more semantic names for ExUnit.ExpectationError 2013-08-19 11:46:59 +02:00
José Valim b4a42a4f87 Remove unecessary modules from docs 2013-08-17 09:09:23 +02:00
José Valim 1ec8321658 Update CHANGELOG 2013-08-15 10:40:24 +02:00
José Valim a86288f5e3 Merge pull request #1597 from thmzlt/doctest_indent
Improve DocTest indentation handling
2013-08-14 23:51:17 -07:00
Thomaz Leite 09b34c3aa6 Change DocTest to conform with updated specs
Updated specs are described in http://git.io/o_ccxQ
2013-08-14 17:24:05 -07:00
José Valim db47bd56b4 Add Path.relative_to_cwd and rely on it when generating stacktraces 2013-08-14 12:36:54 +02:00
José Valim cea31f69dc Review and deprecate list <-> binary conversion 2013-08-14 11:16:37 +02:00
Thomaz Leite b248822a0c Remove unused variable from DocTest 2013-08-13 23:13:45 -07:00
Thomaz Leite e4d679c039 Add "too much" and "not enough" tests to DocTest 2013-08-13 23:13:45 -07:00
Thomaz Leite b5cebbfc14 Make mismatched indentation test pass 2013-08-13 23:13:45 -07:00
Thomaz Leite 649536fc61 Add mismatched indentation test to DocTest 2013-08-13 23:13:45 -07:00
Thomaz Leite 676cab5c8f Make heredocs indentation test pass 2013-08-13 23:13:45 -07:00
Thomaz Leite bdf7bc5e6c Add heredocs indentation test to DocTest 2013-08-13 23:13:45 -07:00
José Valim 52188fab89 Move from unicode to list to String.to_char_list 2013-08-13 08:39:16 +02:00
José Valim 19ac199b06 Move from unicode to binary to String.from_char_list 2013-08-13 08:39:16 +02:00
José Valim 6a68ca5eef Deprecate function/1 and function/3 2013-07-31 12:58:07 +02:00
José Valim 751ebc8c63 Revert "Update ExUnit.Assertions docs, closes #1493"
This reverts commit 655a3c7d70.
2013-07-25 15:36:20 +02:00
José Valim d77d013b32 Support --color option in ExUnit
The option can also be passed via mix, closes #1364
2013-07-25 12:31:18 +02:00
José Valim 408ef28da2 Group ExUnit.start calls into one, closes #1489 2013-07-25 10:38:28 +02:00
José Valim 655a3c7d70 Update ExUnit.Assertions docs, closes #1493 2013-07-25 10:21:58 +02:00
José Valim 888155ee08 Do not re-use stacktraces on IEx, closes #1486
This commit also cleans up error normalization throughout Elixir.
2013-07-24 16:43:54 +02:00
José Valim 9cd6b528c9 Get rid of unmatched docs warnings 2013-07-23 23:37:37 +02:00
José Valim 989fc155de Check ExUnit.Server is registered before adding cases, closes #1472 2013-07-22 12:45:10 +02:00
José Valim 48c67c131b Include test time on trace results 2013-07-22 09:41:32 +02:00
José Valim 37589f99b2 Improve docs for ExUnit 2013-07-21 23:58:56 +02:00
John Warwick 3f8a8c547e Fixed docs as recommended by @alco 2013-07-15 17:15:36 -04:00
John Warwick 9f8601d5ac Fixed doc typos in ExUnit.DocTest 2013-07-15 14:58:57 -04:00
John Warwick c29dfb01ed Fixed doc typos in ExUnit.Assertions 2013-07-15 14:53:20 -04:00
John Warwick e3ea93f8de Fixed doc typos in ExUnit 2013-07-15 14:38:48 -04:00
José Valim 84a0985a39 Deprecate quote binding: in favor of quote bind_quoted: 2013-07-12 08:54:01 +02:00
José Valim accf7dac82 Change inspect formatting to use spaces in between , 2013-07-06 10:07:54 +02:00
José Valim f69ecfe8aa Make Wadler API conform with Elixir API and update doctests to actually run 2013-07-05 20:29:15 +02:00
José Valim 650648a687 Clean up ExUnit.Case 2013-07-04 10:57:31 +02:00
José Valim acf912c2c8 Clean up ExUnit.CaseTemplate to allow composition 2013-07-03 21:29:35 +02:00
José Valim 12c5cf0515 Fix typo on ExUnit.CLIFormatter 2013-07-01 20:27:01 +02:00
José Valim cdd8e5862d Rename the ExUnit option from debug to trace 2013-07-01 16:41:34 +02:00
José Valim eee1993cdd Update CHANGELOG 2013-07-01 15:14:38 +02:00
José Valim 82e1c9337c No need to print 'test' before each test name 2013-07-01 14:50:07 +02:00
José Valim 3bac4ddec6 Support --debug on internal tests which are not run through mix 2013-07-01 14:20:33 +02:00
José Valim 0703be3863 Support :debug option on ExUnit 2013-07-01 14:18:22 +02:00
José Valim d087686f3d Remove unecessary overheard on ExUnit runner and ensure messages are in order 2013-07-01 13:18:26 +02:00
José Valim 595d343e05 Refactor and improve coverage of ExUnit formatters 2013-07-01 13:18:26 +02:00
José Valim 7a1065809a Erlang says that the first directory of an archive should be the same as the archive name 2013-06-25 10:43:54 +02:00
José Valim 6a95d0517f Improve doctest error messages, closes #1318 2013-06-24 08:15:23 +02:00
José Valim f525f5b8cb Add unquote: true support to Macro.escape 2013-06-23 16:32:07 +02:00
José Valim 6cee8572e0 Clean up ExUnit tests 2013-06-21 15:16:02 +02:00
vanstee f2d9e802cd Include description and improve formatting
Switching from `AssertionError` to `ExpectationError` gives us a nicer
error message and allows us to easily include the incorrect result as a
description.

Fixes #1276

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2013-06-21 15:08:48 +02:00