mix

    12热度

    2回答

    在我的仙丹/凤凰的应用程序,当我运行 mix test 我得到这样的输出: $ mix test .... Finished in 0.09 seconds 4 tests, 0 failures 与该成功每个测试点。 如何输出成功的测试名称? 在使用RSpec我用在目录中的文件.rspec看起来像这样做的Rails: $ cat .rspec --color -fd --t

    2热度

    1回答

    我为我的Elixir项目编写了一些测试,并将它们放在test/目录中。现在,我跑mix test,我得到: $ mix test Test patterns did not match any file: 就是这样,以后什么都没有。 我是否必须手动设置我的测试路径? Google快速搜索没有发现任何内容。 这是我所有的测试看起来像: # project_dir/test/my_app/som

    0热度

    1回答

    启动应用程序时,返回值必须是pid或错误。 是否可以使用应用程序来运行一次只能运行一次的程序。就像是。 defmodule MyApp do use Application def start(_type, _args) do # Do stuff {:done, :normal} end end

    0热度

    1回答

    我有一个非常简单的项目,我试图将第一个版本发布为十六进制。但是我无法运行hex.publish任务。 我得到错误**(混合)无法找到任务“hex.publish”。 我正在关注这些hex instructions。 我的mix.exs文件如下所示。 defmodule Ace.Mixfile do use Mix.Project def project do [ap

    0热度

    1回答

    我正在编写一个项目,我想测试,自动与ExUnit和Interactivly与IEX。说我的项目是这样的: [[email protected] sample]$ tree . ├── config │   └── config.exs ├── fixtures │   └── complex_struct.exs ├── lib │   └── the_function.ex ├─

    1热度

    1回答

    我缺少凤凰专用混音任务,例如混合phoenix.gen.html $ mix help | grep的-i凤凰 混合local.phoenix#更新凤凰本地 混合phoenix.new#创建一个新的凤凰V1.2.1应用 $混合-v 二郎/ OTP 19 [erts-8.1] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-

    2热度

    2回答

    我对elixir和phoenix(以及ubuntu)颇为陌生,并且一直在努力让自己与Web开发一起运行。 在创建使用 mix phoenix.new webapp 我从终端 Fetch and install dependencies? [Yn] y * running mix deps.get * error command failed to execute, please run t

    1热度

    2回答

    在Rails应用程序的记录数,我们可以像这样通过一个命令打印数据库表中的记录数: rails r "puts User.count" 凭借我所知,如果我们希望在凤凰城/外生环境同样的事情,我们应该运行这样的命令: mix run -e "IO.puts SampleApp.Repo.aggregate(SampleApp.User, :count, :id)" 这是确定的,但对于日常使用过

    1热度

    1回答

    最近我写了下面的函数: @doc """ Creates a new deck, shuffles its cards and retrieves a hand of cards from it. The `hand_size` argument indicates the size of the hand. ## Examples iex>

    3热度

    1回答

    我正在编译https://github.com/kanatohodets/elixir_riak_core_ping。我有erlang 18安装和elixir版本是1.3。 编译挂在下面的线,不往前走:如果我停下来,试图deps.compile再次运行 Downloaded package, caching at /Users/navinnegi/.cache/rebar3/hex/default