mix yuki.test (YukiHelper v0.2.0) View Source
Tests your source code for the specified problem.
From mix task:
mix yuki.test NO [--problem-id] [--lang LANG] [--source SOURCE] [--time-limit TIME_LIMIT] [--module MODULE]
From escript:
yuki test NO [--problem-id] [--lang LANG] [--source SOURCE] [--time-limit TIME_LIMIT] [--module MODULE]
In order to test your source code, solves a path of the source code.
If there is prefix configuration, decides its filename consisting prefix, problem number, and, extention.
For example, if prefix, problem number, and, language is p
, 10
, and, elixir
,
respectively, the filename is p10.ex
.
Finds its file from directories src
and lib
recursively.
Note: If there is not any testcase for the problem, first, downloads its testcases.
Options
--problem-id
: iftrue
,NO
is the problem ID. Iffalse
,NO
is the problem number.--lang
: this option specifies language to use. Seemix help yuki.lang.list
oryuki help lang.list
for a list of available language. Withoutlanguage.primary
in config file, default toelixir
.--source
: this option specifies a path of source code if source code is out of scope for auto search onsrc
orlib
.--time-limit
: this option redefinesTIME_LIMIT
. Default to 5000 ms.--module
: this option is only valid forelixir
and specifies custom entry pointMODULE.main
on executing.