José Valim
6a45bcfc37
Pass context in setup/teardown callbacks
2012-10-11 06:39:53 +02:00
José Valim
626ed9532b
Erlang. syntax is deprecated in favor of simply using atoms
2012-10-05 17:08:22 -07:00
José Valim
52d406dac2
Simplify some assertion tests
2012-09-07 12:19:30 +02:00
José Valim
d14687b3bc
Raw function definition now evaluates all arguments
...
This applies to def/4, defp/4, defmacro/4, defmacrop/4.
The previous behaviour was accidental and did not properly
evaluate all arguments.
2012-09-07 12:19:03 +02:00
José Valim
5df46d54ef
ExUnit now supports after_spawn callbacks
...
Such callbacks are invoked after each process is spawned.
This commit also refactors ExUnit.Runner slightly to consume
information from ExUnit.Server gradually instead of retrieving
it all up-front. This small step allows us to have ExUnit
running in the background in the future or to run many suites
at once.
2012-09-06 12:52:46 +02:00
José Valim
68828d2b49
Code.require_file and Code.load_file now expect the full name as argument
2012-08-21 11:21:21 -03:00
José Valim
b43cf970ff
Add guards to assert_raise to avoid passing a block
2012-08-20 08:33:51 -03:00
José Valim
9aa32423b0
Provide some behaviour conveniences
2012-08-17 15:49:00 -03:00
José Valim
a00c64681d
Add Enum.reverse
2012-08-09 08:53:48 -03:00
José Valim
55027e3ac3
Update version, remove deprecated APIs
2012-08-01 13:23:35 +02:00
José Valim
d857b7b3f5
MixFile -> Mixfile
2012-07-31 15:37:04 +02:00
José Valim
f3bdcb49cb
Ensure deps.get also updates locks
2012-07-31 09:43:09 +02:00
José Valim
99965ab804
Improve docs for ExUnit
2012-07-26 13:25:16 +02:00
Rafael Mendonça França
754d8c4f27
Fix typo
2012-07-25 00:26:44 -03:00
José Valim
14bf6c84f7
Improve assertion docs
2012-07-24 11:32:00 +02:00
José Valim
5c6bf0856c
Clean up a couple more assertions
2012-07-24 11:16:57 +02:00
José Valim
c9756b55f2
Add run and deps.loadpaths to mix
2012-07-19 16:00:31 +02:00
José Valim
42c39ed93c
Improve docs for assert_received
2012-07-19 14:03:13 +02:00
José Valim
3e1bd2bfaa
Add deps.check
2012-07-19 11:46:19 +02:00
José Valim
ba17e8ac78
Use mix to generate .app files
2012-07-19 08:38:26 +02:00
José Valim
a421a73abf
Clean up exunit server and exception docs
2012-07-18 11:54:27 +02:00
José Valim
c524f43860
Add assert_received to assertions
2012-07-18 10:57:44 +02:00
José Valim
fea9455eb7
Add self() back since it is allowed in guard clauses
2012-07-17 13:49:34 +02:00
José Valim
2c396b9cc1
Make the default for ExUnit case to be sync
2012-07-16 15:29:28 +02:00
José Valim
28ecab3dde
Support File.cp_r
2012-07-16 15:29:27 +02:00
José Valim
ab504ce9fe
Add setup and teardown callbacks to ExUnit
2012-07-16 15:29:26 +02:00
José Valim
acc4b8e6fe
Introduce regex match operator (=~)
2012-07-08 21:17:10 +02:00
José Valim
95ff052517
Remove extended semantics from the access protocol
...
The semantics of the access protocol is now reduced to a
key based access in data structures. This suits better
Erlang's philosophy of not overloading operators with
different semantics.
2012-07-08 20:49:01 +02:00
José Valim
d5031b6347
Move all code to erlang style apps
2012-07-05 20:20:16 +02:00
José Valim
fe6bcad330
Split ex_unit from kernel
2012-07-04 21:40:06 +02:00
José Valim
77d018758b
Move Elixir's kernel to lib/kernel
2012-07-04 18:52:40 +02:00
José Valim
192098ce3c
Make assert smarted deprecating unecessary counter-parts
2012-06-08 14:16:17 +02:00
José Valim
f7652b88e3
Initial support to @spec, @typep and @type attributes
2012-06-08 13:53:36 +02:00
Yurii Rashkovskii
40c42d9569
Matching the return value in ExUnit.Server.start_link is too early
2012-06-08 00:36:13 -07:00
José Valim
4d6920a470
Add IO.read, IO.write and IO.readline
2012-06-04 20:08:08 +02:00
José Valim
c8d2a0b878
Ensure refute can also show nice messages, closes #319
2012-06-04 15:55:27 +02:00
José Valim
aaf6c91e0e
Rewrite use in Elixir, force it to rely on __CALLER__
2012-05-28 13:23:04 +02:00
José Valim
8a3439e6f3
Remove special conditions inside catch
2012-05-18 18:02:56 +02:00
José Valim
f9dd6f66a6
Remove function single do: definition syntax
2012-05-13 17:36:54 +02:00
José Valim
e476a5ef0d
Stab at new syntax
2012-05-13 15:33:57 +02:00
José Valim
e13241a6ec
Docs for ExUnit, make records non documented by default
2012-05-08 11:47:03 +02:00
Sergey Nartimov
fa35d55fdf
use correct doc format in ExUnit
2012-05-05 17:48:09 +03:00
José Valim
52eaf6d547
Overridable is no longer a data attribute, but a macro. This allows it to work fine with multi-clauses.
2012-05-02 21:23:25 +02:00
José Valim
7c7d7bd458
Allow "in" match clauses
2012-04-30 12:07:59 +02:00
José Valim
b620b2ea9a
Ensure we don't rescue the wrong exception accidentally
2012-04-26 09:58:16 +02:00
José Valim
5210aa5da8
Now that we have faster load times, get rid of assert_equal
2012-04-26 09:29:21 +02:00
José Valim
929f84f420
Revert removal of assert_equal
2012-04-26 00:31:40 +02:00
José Valim
d515e0a923
Improve docs for assertions
2012-04-26 00:13:31 +02:00
José Valim
24d64a871e
Get rid of assert_equal
2012-04-25 23:36:02 +02:00
José Valim
08078007c1
Smarter guesses on expected and actual, convert access_test.ex
2012-04-25 21:32:27 +02:00