Skip to content

Workflow for testing exercises in development #1

@waseem-medhat

Description

@waseem-medhat

Since the exercises are in a repo that is separate from when they actually run, I figured we'd need a way to quickly test the exercises (and associated tests) while they are being developed.

I am still strongly leaning towards not making this repo configured like an app with Mix for the following reasons:

  • This repo is more or less a "storage" place for these exercises
  • The directory structure is unidiomatic for a Mix project
  • Unlike typical Elixir projects, we won't compile the entire app to run the tests for a single module (others will be broken by design)

So, my suggestion is to have a script that is simply called from the shell (e.g., elixir run_tests.exs basic_types), and it only compiled the two files inside, i.e., compiles the module code and runs its tests.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions