Commit Graph

41 Commits

Author SHA1 Message Date
Ahmed Ismail
edf50fdf80 Add credo to the project and:
- Run mix credo --all to identify possible code optimizations
 - Resolve most of the errors generated by credo such as:
   - Numbers larger than 9999 should be written with underscores: 58_127
   - Modules should have a @moduledoc tag
   - Comparison will always return true
2023-11-10 00:57:21 +05:00
Felipe Sere
82b4eb1766 Squash warnings about missing inits 2019-01-05 11:12:39 +00:00
Martino Visintin
b07df7c780 add .formatter.exs + format 2018-05-22 21:46:54 +01:00
Nathan Walker
372d7f70ac Extracted watcher and runner into supervision tree. 2017-07-28 13:00:18 -05:00
Nathan Walker
b71221977c Extract display into supervision tree. 2017-07-28 12:56:02 -05:00
Felipe Sere
0936ed56e2 Use the new modules 2016-05-14 00:23:05 +02:00
Felipe Sere
3ef7051888 Moves showing the intro into the formatting of a failure 2016-05-13 07:51:31 +01:00
Felipe Sere
94ab9826ae Make intro/2 more readable by making 'not' more explicit. 2016-05-10 23:41:22 +01:00
Felipe Sere
751f849585 Collect all intro printing into display 2016-05-10 23:02:23 +01:00
Felipe Sere
3d79284aab Shows into the first time a module is visted. 2016-05-10 23:02:23 +01:00
Felipe Sere
a5c3d910a7 Use heredoc-style for longer blocks of text in Display 2016-04-27 21:12:13 +01:00
Felipe Sere
fb56540193 Remove the last exit from Display 2016-04-27 21:06:26 +01:00
Felipe Sere
b01727f9b8 Extract colours into their own little module 2016-04-27 21:04:31 +01:00
Jay Hayes
814d3db995 Refactor Tracker get/0 and summarize/0 2016-04-26 18:16:17 -05:00
Jay Hayes
93c41d6ced Move explicit exit out of display function 2016-04-26 18:10:16 -05:00
Jay Hayes
7903923e36 Implement congratulation display 2016-04-26 17:30:41 -05:00
Felipe Sere
135fc055ca Remove "Considering..." line 2016-04-26 23:06:05 +01:00
Felipe Sere
ab72b0e908 Simpler progressbar and handle --koan=<KOAN> better 2016-04-26 23:06:05 +01:00
Felipe Sere
2b2240340e Add a progress bar that also displays the number of koans. 2016-04-26 23:06:05 +01:00
Uku Taht
5e7391402e Stop wrapping ExUnit 2016-04-23 21:39:22 +01:00
Uku Taht
d3130ac3dd Improve error reporing on assert receive 2016-04-20 11:07:19 +01:00
Felipe Sere
211355b1a5 Implement a custom version of assert_receive. 2016-04-18 23:08:21 +01:00
Felipe Sere
cc8fa19ce0 Minor cleanup 2016-04-09 23:19:18 +01:00
Felipe Sere
153a9df599 Move error line detection into runner itself due to processes. 2016-04-09 14:18:39 +01:00
Felipe Sere
88ee80b73d Introduce --koan=<name> to run a specific koan module. 2016-04-04 20:57:17 +01:00
Uku Taht
236bc55ba8 Clear screen before running koans 2016-03-12 16:37:21 +02:00
Uku Taht
23d5d87af5 Add a newline before compile error 2016-03-09 16:40:35 +02:00
Uku Taht
3990e7f7e5 Arrange public/private sections in Display 2016-03-09 16:40:35 +02:00
Uku Taht
0a66577481 Format runtime errors consistently with assertion errors 2016-03-09 16:40:35 +02:00
Felipe Sere
dc64bdf186 Get rid of the koan prefix 2016-03-08 20:27:53 +00:00
Uku Taht
cd8e02c68a Rely on stacktraces to get the file and line of last failure 2016-03-08 11:21:41 +00:00
Felipe Sere
95e4d5a182 Minor refactorings to simplify the code. 2016-03-08 11:21:41 +00:00
Felipe Sere
c450cc3b19 Koans about processes including infrastructure. 2016-03-08 11:21:41 +00:00
Uku Taht
a59ce4f294 Introduce global state for options so we don't have to pass it around 2016-03-07 17:53:41 +02:00
Felipe Sere
53815ed759 Clears display on failures based on options map 2016-03-06 14:56:13 +00:00
Makis Otman
1b4948f7ef Clear screen on every run 2016-03-06 13:36:34 +00:00
Uku Taht
933e11acb9 Intercept and print compile errors in a nicer way. 2016-01-13 13:33:57 +00:00
Makis Otman
5c44a52fbf Add different color for failed assertion in runner 2015-12-18 14:44:13 +00:00
Uku Taht
5dec471422 Extract prefix constant for koans 2015-12-17 01:57:49 +00:00
Uku Taht
34cb474569 Extract function to get the source file of a module 2015-12-17 01:52:34 +00:00
Uku Taht
f76aee3672 Extract display for formatting purposes 2015-12-17 01:50:14 +00:00