BB.NSK.TaskCase (bb_nsk v0.1.2)

Copy Markdown View Source

A mix nerves.new-shaped project for the installer tests to work on.

bb_nsk.install refuses a project with no :nerves, and bb.add_robot wants an application module to wire the robot into, so both are here. Everything else a real Nerves project carries — the release, the target config, the rootfs overlay — is irrelevant to what these tasks read.

Summary

Functions

The content a task left at path, whether it created the file or changed one.

A project that bb_nsk.install has already run against.

A project with :nerves in its deps and an application module.

The robot module's source after a task has run.

Functions

content(igniter, path)

The content a task left at path, whether it created the file or changed one.

installed_project(opts \\ [])

A project that bb_nsk.install has already run against.

The add_* tasks all attach to the topology it establishes, so nearly every test of them starts here.

nerves_project(opts \\ [])

A project with :nerves in its deps and an application module.

files are merged over the defaults rather than replacing them, so a test can add a robot module of its own without losing the mix.exs that makes the project a Nerves one.

robot_source(igniter)

The robot module's source after a task has run.