Commit Graph
300 Commits
Author SHA1 Message Date
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
Yuki Ito 2403d0c4b9 IEx.Server break out of the loop when accepting :eof as input 2013-05-23 01:59:58 +09:00
Yuki Ito 97ea102a79 Enable ExUnitCaptureIO.capture_io to receive input 2013-05-23 00:45:06 +09:00
José Valim 37054c8226 Deprecate Exception.format_entry in favor of Exception.format_stacktrace_entry 2013-05-22 00:55:46 +02:00
José Valim c3d6a96dac Consider load time on ExUnit reports, closes #893 2013-05-21 12:57:22 +02:00
José Valim 80633a2ec6 Use :stdio as default argument in capture_io 2013-05-17 09:47:39 +02:00
José Valim abc5d6f954 Also allow explicitly capturing of stdio and stderr 2013-05-15 10:19:01 -06:00
José Valim ad2a6774b1 Ensure no group_leader leakage on capture_io and remove stderr test which was printing on run 2013-05-15 10:02:29 -06:00
Yuki Ito 66eb369b3d Implement capture_io for ex_unit 2013-05-15 19:12:50 +09:00
José Valim 8154066d79 Update CHANGELOG and verbage from previous pull request 2013-05-14 17:12:00 -06:00
José Valim a0a06941ec Merge pull request #1030 from ericmj/report-setup-all-error
Report setup_all errors and mark tests as invalid
2013-05-14 16:00:34 -07:00
José Valim 8de27bf9af Clean up and speed up exceptions 2013-05-12 20:51:39 -06:00
Eric Meadows-Jonsson 993c28a4de Report setup_all errors and mark tests as invalid
Closes #878
2013-05-08 01:14:30 +02:00
José Valim cbe82e0912 Add __DIR__, closes #1019 2013-05-06 11:03:37 -06:00