GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Tests for entities · Issue #83 · herbsjs/herbs-cli

Tests for entities #83

New issue
Copy link
New issue
Copy link
Open
Open
Tests for entities#83
Copy link
Assignees
RafaelStutz
Labels
enhancementNew feature or requesthacktoberfestready-to-workItem is ready to work on itseverity-minorItem is not urgent

Description

@dalssoft
dalssoft
opened on Dec 18, 2021
Issue body actions

The only test currently being generated (from new or update command) is use case tests.

Since entities also can (and should) have logic, they should have tests for entities as well.

ex:
\src\domain\entities\user.js
\src\domain\entities\user.test.js

Activity

  1. dalssoft
    added
    enhancementNew feature or request
    on Dec 18, 2021
  2. jhomarolo
    added
    ready-to-workItem is ready to work on it
    severity-minorItem is not urgent
    on Dec 24, 2021
  3. italojs
    added this to Herbs - 3rd Anniversary Editionon Jun 13, 2022
  4. dalssoft
    moved this to More discussion is needed in Herbs - 3rd Anniversary Editionon Jun 27, 2022
  5. maikmb commented on Jul 5, 2022

    @maikmb
    maikmb
    on Jul 5, 2022
    More actions

    @dalssoft This test is for entities generated by the CLI? When you generate a new entity, It does not have logic yet.

  6. dalssoft commented on Jul 5, 2022

    @dalssoft
    dalssoft
    on Jul 5, 2022
    MemberAuthor
    More actions

    This issue is pre-spec/aloe but the idea remains valid. In order to implement this issue, first it is necessary to add a spec to entities on aloe.

    Once we have this feature there we could have a generated spec files to each entity or at least for the first entity (User) as an example

  7. maikvortx commented on Jul 6, 2022

    @maikvortx
    maikvortx
    on Jul 6, 2022
    More actions

    Yes, I agree! We can have at least one user.spec file in the herbs-cli template.

  8. RafaelStutz commented on Jul 12, 2022

    @RafaelStutz
    RafaelStutz
    on Jul 12, 2022
    More actions

    I can work on this issue.

  9. jhomarolo
    assigned
    RafaelStutz
    on Jul 12, 2022
  10. jhomarolo
    moved this from More discussion is needed to In Progress in Herbs - 3rd Anniversary Editionon Jul 12, 2022
  11. italojs
    added
    hacktoberfest
    on Oct 3, 2022
  12. italojs commented on Oct 5, 2022

    @italojs
    italojs
    on Oct 5, 2022
    Member
    More actions

    @RafaelStutz are you still working on this?

  13. dalssoft commented on Nov 15, 2022

    @dalssoft
    dalssoft
    on Nov 15, 2022
    MemberAuthor
    More actions

    FYI, CLI can now run specs without use case metadata: #169

    With that, it is just a matter of creating templates for the entities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @RafaelStutz
    RafaelStutz

Labels

enhancementNew feature or requesthacktoberfestready-to-workItem is ready to work on itseverity-minorItem is not urgent

Type

No type

Projects

  • Herbs - 3rd Anniversary Edition
    Status
    In Progress
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.