Commit Graph
313 Commits
Author SHA1 Message Date
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
José Valim afab1f8d73 Fix typo on assertion message 2013-06-20 23:15:53 +02:00
vanstee 561d6ea0d1 Show original statement if assert or refute fails
If the asserted statement evaluates to false, show the unevaluated
statement in the assertion error output message for more context about
the failure. Refute also now follows similar semantics.

Fixes #1276
2013-06-20 16:17:55 -04:00
José Valim 752a09c988 Update error message in ExUnit 2013-06-20 08:36:49 +02:00
Andrzej Sliwa e6bc5a273c refactored/renamed from Code.string_to_ast to Code.string_to_quoted 2013-06-19 00:18:32 +02:00
Andrzej Sliwa 8fa6c4f96f refactor/rename Macro.to_binary to Macro.to_string with deprecation warning 2013-06-18 23:35:13 +02:00
José Valim 19ff7a03f9 Ensure imports inside quotes are properly registered, closes #1225 2013-06-16 13:18:47 +02:00
Rafael Mendonça França 7cdc25538e Uniform use of whitespace after commas on codebase
This make easier to read and also follow some standard in the code
2013-06-15 16:52:48 -03:00
José Valim 21db352039 Always print warnings to stderr 2013-06-15 09:32:53 +02:00
José Valim d3d83b17f4 Merge pull request #1199 from alco/1148-match-tilde-op
Reimplement =~ to use Regex.match? or String.contains?
2013-06-13 06:13:32 -07:00
Yuki Ito 961099746e Implicit super arguments is deprecated 2013-06-13 00:42:34 +09:00
Alexei Sholik 9b0d972571 Optimize doctest generation. Closes #1226 2013-06-12 15:55:06 +03:00
Alexei Sholik 5184edd432 Fix code escaping in ExUnit.Callbacks docstring 2013-06-11 14:05:19 +03:00
Alexei Sholik 4a1dfccbec Use =~ with strings where it makes sense 2013-06-08 15:58:34 +03:00
Alexei Sholik dd2e0f6064 Mention mix and testing conventions in ExUnit's doc 2013-06-06 19:44:10 +03:00
Alexei Sholik 23982f1744 Extend the documentation for ExUnit.Callbacks. Closes #1142 2013-06-06 19:44:02 +03:00
José Valim c78d3b3717 Clean up DocTestTest 2013-06-05 18:00:26 +08:00
Alexei Sholik d636dc0ff0 Proof-read the doc for capture_io 2013-06-03 15:07:47 +03:00
Alexei Sholik 7f9a2ed17b Don't process ANSI escapes in ExUnit output 2013-06-03 15:07:47 +03:00
Alexei Sholik 997a798994 Implementation of a basic test framework for IEx. Closes #919 2013-06-03 15:07:47 +03:00
Yuki Ito 1fa29be448 Option that enable to decide whether capture_io captures a prompt or not 2013-06-02 19:15:06 +09:00
Yuki Ito 9840ac266b capture_io captures a prompt when capturing of stdio 2013-06-01 17:07:28 +09:00
Alexei Sholik 2272dd1c46 Better error message for Binary.Chars.List.to_binary. Closes #1144 2013-05-31 12:14:51 +03:00
José Valim bcf9d814dd Remove deprecated code 2013-05-30 11:24:51 +09:00
Alexei Sholik 4ce444ad76 Include location info in the multiple exceptions error 2013-05-29 00:34:18 +03:00
Alexei Sholik da4565ee88 Don't test DocTest's doctests 2013-05-28 19:07:30 +03:00
Alexei Sholik 2075a9b07a Minor formatting fixes 2013-05-28 17:55:38 +03:00
Alexei Sholik abb261443b Clean up the docs for doctests 2013-05-28 17:28:28 +03:00
Alexei Sholik 41b0ae4b37 Add a couple of comments explaining decisions 2013-05-28 17:08:04 +03:00
Alexei Sholik 4d793f6db1 Deduplicate test generation code 2013-05-28 17:01:33 +03:00
Alexei Sholik c82a8ee0fa Remove unused debug output 2013-05-28 16:36:53 +03:00
Alexei Sholik 7044f9c9da Add a test for leaking vars 2013-05-28 16:36:32 +03:00
Alexei Sholik ec8327967a Little refactoring 2013-05-28 16:36:19 +03:00
Alexei Sholik 5aa5268c5b Implement extended doctest sessions. Closes #1020 2013-05-28 13:53:18 +03:00
Yuki Ito 59a9ddb7d5 Remove warning in capture_io 2013-05-23 02:20:04 +09:00