Alexei Sholik
707b965d21
Use singular names for time units, as in Erlang/OTP 19.1. Fix #5236 ( #5244 )
2016-09-22 23:28:13 +03:00
shotat
5d5f9f4aee
fix typo ( #5223 )
2016-09-15 19:02:19 +01:00
Aleksei Magusev
5c1eedb700
Properly format :"foo-bar" atoms in diff for keywords and maps
2016-09-14 16:27:00 +02:00
José Valim
0d17dd5212
Avoid warnings and tidy up assert_receive timedout message
2016-09-11 11:13:25 +02:00
Luke Imhoff
5a001d66a4
Explain race condition in assert_receive to user when it happens ( #5204 )
...
When using assert_receive, it is possible for the following sequence of
events:
1. `after` timeout triggers, indicating messages was not received
2. Process receive messages
3. `Process.info(self(), :messages) is called and gets message
`assert_receive` was waiting for.
Previously, `assert_receive` would not check the output
`Process.info(self, :messages)` for the expected pattern, so it would
print a confusing error message that said "No message matching <pattern>
after <timeout>ms", but then show a matching message in the "Process
mailbox" section. Now, for this special race-condition, a long-form
explanation that the message is being delivered at or near the timeout
is being printed, along with how this could impact production and how to
fix it if it only impacts tests.
2016-09-11 10:58:58 +02:00
Tobias Pfeiffer
fc46cd4560
Specify that the timeout is expressed in milliseconds for increased clarity ( #5186 )
2016-09-07 12:35:08 +02:00
Gabriel Taylor-Russ
e1b3c732f8
Minor grammatical improvements to the doctest documentation ( #5175 )
2016-09-01 00:51:57 +02:00
Andrea Leopardi
6d48d0c05d
Fix some markup in the docs for ExUnit.Case
2016-08-29 16:26:52 +02:00
Jeff Gulbronson
17c084aea4
Make ExUnit server timeout configurable
...
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
2016-08-24 18:19:44 +02:00
José Valim
4fa89d8905
Use the usual default of 30s for "private" servers
2016-08-11 09:51:12 +02:00
Aleksei Magusev
d63cac6a07
Omit redundant information if both sides in assertion are exactly equal ( #5113 )
2016-08-09 01:07:50 +02:00
Aleksei Magusev
d2cdacebdd
Do not remove trailing newline in doctests with inspect
2016-08-07 23:45:25 +02:00
Aleksei Magusev
93af3cc261
Tidy up ExUnit.DocTestTest.Haiku
2016-08-07 21:02:21 +02:00
Qqwy
4b64ca65c6
Expand DocTest's RegExp to allow Unicode and Multi-line inside opaque inspect types ( #5106 )
...
Regex changed to:
- Allow Unicode
- Allow multiline statements
- Doctest will still match if Inspect output ends with a `\n`
- Instead of enforcing `#Name<...>` now enforces `#Name<...` (Trailing `>` no longer required)
2016-08-07 20:24:41 +02:00
Eric Meadows-Jönsson
1814d92006
Avoid "just" in instructions
2016-07-26 15:35:27 +02:00
Matt Layman
9b1c317471
Update :test_started to :test_finished events ( #5059 )
...
The `:test_started` and `:test_finished` events in the `moduledoc`
refer to a `test_case` in the prose. In reality, those events receive
an `ExUnit.Test` struct.
2016-07-26 10:26:46 +02:00
Aleksei Magusev
6f3c7e1867
Fix edit script for maps when there are no joint elements
...
Closes #4977 .
2016-07-11 01:13:32 +02:00
Aleksei Magusev
2ff47fed1f
Replace lhs/rhs with left/right in ExUnit.Formatter ( #4940 )
2016-07-05 12:16:20 +04:00
Aleksei Magusev
b0ac35ede8
Correct code formatting on exception in doctest
2016-07-04 23:01:38 +03:00
Aleksei Magusev
02343f786e
Correct multiline guard definitions in Enum
2016-07-01 20:21:22 +03:00
Aleksei Magusev
e43e5c71eb
Merge pull request #4901 from lexmag/ex_unit-diff-proper-lists
...
Enhance difference highlighting for proper lists
2016-07-01 12:50:09 +02:00
Eksperimental
90389924ff
Correct a bunch of adjectives in the ExUnit code ( #4905 )
2016-06-29 11:02:53 +02:00
Aleksei Magusev
2a4323ca34
Enhance difference highlighting for proper lists
2016-06-26 22:59:15 +02:00
Aleksei Magusev
08103627d8
Generalize difference highlighting for keywords
2016-06-26 22:47:27 +02:00
Aleksei Magusev
a0b4cc681f
Rename keyword? –> keywords? in ExUnit.Diff
2016-06-26 22:11:13 +02:00
Aleksei Magusev
e1674518fb
Improve doctest failure messages for exception assertions ( #4889 )
2016-06-26 12:03:59 +02:00
Eksperimental
9257fd83c1
Properly spell PID ( #4883 )
2016-06-25 09:03:35 +02:00
Eksperimental
f9b8fb58bb
Spell properly BEAM ( #4882 )
2016-06-25 09:03:15 +02:00
Eksperimental
b183018cd6
Add missing double quotes to doc_test ExUnit.AssertionError ( #4881 )
2016-06-25 04:08:59 +02:00
Aleksei Magusev
eeda465fe4
Consider variables are on different lines in assert_receive
2016-06-20 19:56:00 +02:00
José Valim
e37d17c3b2
Do not leak external variables used in guards in assert_receive
2016-06-20 14:45:58 +02:00
Andrea Leopardi
e8c9cd369c
Fix the name of the ExUnit.DescribeTest module ( #4824 )
...
It was ExUnit.BundleTest, in memory of ancient times when "describe" was
called "bundle".
2016-06-17 15:31:58 +02:00
Aleksei Magusev
c0001af227
Ensure sync tests don't overlap when the timeout occurs
2016-06-17 10:41:40 +02:00
Aleksei Magusev
908659e7e1
Ensure we get test process reply when it's finished in time
2016-06-17 00:27:47 +02:00
Aleksei Magusev
2d6cfdd430
Handle stracktrace retrieval for exited process properly
2016-06-15 23:15:11 +02:00
Aleksei Magusev
b976f156f7
Add timeout handling to on_exit callback in ExUnit
2016-06-15 22:10:45 +02:00
Aleksei Magusev
18cc367b3f
Move test for deps.compile --force to the proper place
2016-06-12 23:44:46 +02:00
Aleksei Magusev
b86b8ca335
Emit warning when variable is being expanded to function call ( #3517 )
2016-06-11 22:31:03 +02:00
Aleksei Magusev
1483fa9e3b
Do not silence unused variable warnings in assert_receive
...
Closes #4789 . It's not needed anymore after 6348114a9b commit.
2016-06-09 00:51:43 +02:00
Aleksei Magusev
d6a58f79e5
Enhance difference highlighting for keywords ( #4785 )
2016-06-08 00:15:43 +02:00
eksperimental
e59a9f82fd
Use proper case for proper nouns and acronyms
...
Use proper case for proper nouns (e.g., Elixir, Rebar, Git, and others)
as well as acronyms (e.g., URL, HTTP, and others).
2016-06-06 15:17:59 +02:00
José Valim
cb355710c3
Do not mark cases as loaded after failures, closes #4771
2016-06-04 12:32:00 +02:00
José Valim
c14a05f73d
Update TODOs and CHANGELOG
...
* Functionality won't be removed before v2.0
* Features soft-deprecated in Elixir v1.2 will warn on v1.4
* Features soft-deprecated in Elixir v1.3 will warn on v1.5
2016-06-02 21:21:24 +02:00
eksperimental
1dc249d6d5
Make casing consistent in error messages ( #4745 )
...
Error messages from Mix.raise should start with a capitalized
word, while all other messages (for raised things) should start
with a lowercase word.
2016-06-01 22:46:26 +02:00
José Valim
f9ff124200
Use explicit variables instead of binding()
2016-05-31 16:35:07 +02:00
José Valim
65725fa771
Rename bundle/2 to describe/2
2016-05-30 12:19:21 +02:00
Aleksei Magusev
0fa8df896f
Replace *just with pad_* calls and optimize around
2016-05-30 02:04:26 +02:00
Aleksei Magusev
e9e56c2e73
Replace *strip with trim* calls and optimize around
2016-05-30 02:04:17 +02:00
Aleksei Magusev
216fadc5f0
Improve edit script construction for root level strings
2016-05-28 23:06:53 +02:00
Aleksei Magusev
1f12979628
Change the order of keys in edit script for map
2016-05-28 21:48:28 +02:00