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: if true, NO is the problem ID. If false, NO is the problem number.

  • --lang: this option specifies language to use. See mix help yuki.lang.list or yuki help lang.list for a list of available language. Without language.primary in config file, default to elixir.

  • --source: this option specifies a path of source code if source code is out of scope for auto search on src or lib.

  • --time-limit: this option redefines TIME_LIMIT. Default to 5000 ms.

  • --module : this option is only valid for elixir and specifies custom entry point MODULE.main on executing.

Link to this section Summary

Link to this section Functions