Commit Graph
489 Commits
Author SHA1 Message Date
José Valim 55d0f568da Improve docs and code regarding ansi formatting 2014-05-08 21:09:34 +02:00
José Valim 8b203a8379 Use IO.ANSI.Docs to format mix help 2014-05-08 20:13:29 +02:00
José Valim de26484bda Normalize IEx and ExUnit configurations 2014-05-08 19:07:25 +02:00
José Valim a184b4061e Rename :application to Application and remove unused fixtures 2014-05-08 16:55:14 +02:00
José Valim fc5050d122 Convert ex_unit context to a map 2014-05-07 23:13:53 +02:00
José Valim 011ad07d7d Convert internal records to structs 2014-05-07 23:00:51 +02:00
José Valim 30d7114922 Convert doctest Test to a struct 2014-05-07 14:39:19 +02:00
José Valim b0a5197f42 Convert ExUnit.Test and ExUnit.TestCase to structs 2014-05-06 22:24:03 +02:00
José Valim f1effcb485 Use Exception.message/1 instead of exception.message 2014-05-06 18:33:02 +02:00
José Valim 91497b9f15 Rename format_message to format_banner 2014-05-05 17:57:24 +02:00
José Valim 8797280b9e Define an Application module 2014-05-04 12:43:49 +02:00
Paul Schoenfelder da784ebc1a Update use of deprecated :global option to use :parts 2014-05-03 23:47:37 -05:00
José Valim 21f2f0f112 Report the test line on exunit errors 2014-05-01 14:25:31 +02:00
José Valim 3c6e63a962 Ensure filters can compare aliases and regexes 2014-05-01 11:43:13 +02:00
José Valim 27a787e531 Simplify exunit test name generation and update code samples 2014-04-30 23:36:44 +02:00
José Valim f75666515a Ensure teardown failures are shown, closes #2222 2014-04-30 21:48:30 +02:00
José Valim e5c13e6dd2 Convert Macro.Env to a struct 2014-04-30 15:07:50 +02:00
José Valim 1679f6b4d7 Tidy up ExUnit.Filters docs 2014-04-29 19:42:10 +02:00
José Valim cae8f0933b Merge pull request #2214 from MSch/mix-test-line-numbers
Support line numbers in mix test, e.g. test/some/file_test.exs:12
2014-04-29 19:39:18 +02:00
Martin Schürrer 7f8a52c264 Support line numbers in mix test, e.g. test/some/file_test.exs:12 2014-04-29 18:51:12 +02:00
José Valim ee78e10089 Disable ANSI on Windows 2014-04-29 16:52:35 +02:00
José Valim 8e4a8e9ed6 Do not call :io.columns on every inspect, closes #2036 2014-04-29 13:50:29 +02:00
Eric Meadows-Jönsson 50fdf47d05 Merge pull request #2206 from MSch/exunit-line-numbers
Make ExUnit.Filters parse integers and match atoms to binaries.
2014-04-28 17:54:28 +02:00
José Valim 6309ffb366 Make HashSet and HashDict structs 2014-04-28 17:46:15 +02:00
Martin Schürrer bc6975cdae Make ExUnit.Filters convert to_string before matching. Fixes #2064.
Makes mix test --only line:9 or --only "test:Test Message" work.
2014-04-28 17:38:33 +02:00
José Valim 87ee9995d0 Merge pull request #2186 from jsvisa/exunit_case_docfix
Docfix: write error
2014-04-23 14:17:23 +02:00
jsvisa 4e0e174063 Docfix: write error 2014-04-23 20:08:19 +08:00
José Valim 56f15d9f4e Do not add spaces after { and before }
This makes the source code consistent with the result
returned by inspect/2.
2014-04-21 19:06:35 +02:00
José Valim f6a24985b2 Also add a test for teardown failures 2014-04-21 11:29:04 +02:00
José Valim 76bee630a2 Clean up doc tests 2014-04-21 11:26:51 +02:00
José Valim 832405c2cf Ensure we properly raise on doctest failures 2014-04-21 11:17:02 +02:00
José Valim 440f696f9b Merge pull request #2182 from pragdave/make_013_compatible
use 0.13 exunit exception in doctest
2014-04-21 17:43:31 +09:00
José Valim 6624f31472 Merge branch 'jv-char-data'
Conflicts:
	lib/eex/lib/eex/tokenizer.ex
	lib/elixir/lib/file.ex
	lib/elixir/lib/kernel.ex
	lib/elixir/lib/record/extractor.ex
	lib/elixir/lib/string.ex
	lib/ex_unit/lib/ex_unit/doc_test.ex
	lib/mix/lib/mix/archive.ex
	lib/mix/lib/mix/dep/fetcher.ex
	lib/mix/lib/mix/dep/umbrella.ex
2014-04-21 08:38:48 +02:00
pragdave cd900764d2 use 0.13 exunit exception in doctest 2014-04-20 16:10:47 -05:00
José Valim edfb650c94 Properly format and indent test output 2014-04-19 11:31:58 +02:00
José Valim 860c056cbe Clean up new formatter implementation 2014-04-18 12:01:50 +02:00
pragdave 897424b185 Spruce up the output format of ex_unit
Conflicts:
	lib/ex_unit/lib/ex_unit/assertions.ex
2014-04-18 10:33:00 +02:00
José Valim c6c6a27baf Merge pull request #2167 from fishcakez/assert_warnings
Fix ExUnit.Assertions receive macros compiler warnings
2014-04-12 14:43:30 +08:00
Igor Kapkov 97e70e6de1 change some doc examples to iex style 2014-04-12 08:41:22 +02:00
James Fish 980dbc96d7 Fix ExUnit.Assertions receive macros compiler warnings
Previously receive macros would produce warnings when a message was
supplied.
2014-04-11 23:31:22 +01:00
José Valim d2530e44eb Tidy up new record API 2014-04-10 16:36:26 +02:00
José Valim f3f2481e71 Ensure tracing set default max cases to 1 2014-03-31 13:45:05 +02:00
José Valim bdab8045b9 Rename StringIO API to be more IO like (start -> open, stop -> close) 2014-03-27 09:17:04 +01:00
José Valim 9cbe498a02 Update heredoc tests 2014-03-26 12:16:50 +01:00
José Valim edf55a8424 Ensure doctests run as expected 2014-03-26 12:09:56 +01:00
José Valim 41bce3e068 There is no need to rely @on_definition callbacks to store tags 2014-03-26 09:54:08 +01:00
José Valim 09e9917fc5 Remove reduce as a requirement from Dict API 2014-03-17 12:49:54 +01:00
José Valim 26f5f640c9 Initial work on traversable 2014-03-05 08:08:43 -08:00
Yuki Ito eaa2db1809 Raise error if another capture_io process already captured the device 2014-03-05 21:10:50 +09:00
Eric Meadows-Jönsson 9e068fb0a2 Support :io.get_password in StringIO 2014-03-01 17:58:51 +01:00