lenra-io / lenra-io/components-api

Add unit test for each component and root

Open
#25 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

We should add a unit test for each component.

This will ensure that every component can be loaded by the ex_json_schema library and that the corresponding json is valid.

We should create a elixir project with the ex_json_schema lib.

I'm not sure what is the scope of the test here and the scope of test inside the application_runner.
IMO the application_runner should only test that the UI is correctly parsed/validated and the error is correctly returned.
This app should test every properties for every components.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the component definitions and the application_runner behavior, then determine the scope of a separate Elixir project using ex_json_schema. Done means each component and the root can be loaded and its corresponding JSON is valid, while application_runner coverage checks UI parsing, validation, and returned errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.