Skip to content

[TEST] : low coverage in lib/domains/models #2016

Open

Description

@Ishita-190

The following files have relatively low branch and function coverage:

Image

A lot of helper methods and error-handling branches are currently not exercised by the existing test suite:

  • Context.js: validation helpers, duplicate/empty context checks, and error paths in methods like loadContext , addContext , removeContext , and setCurrentContext .
  • Studio.js: early returns in start(), path validation logic (isValidFilePath), and branches in file read/write helpers.

Improving coverage here would strengthen confidence in edge cases and reduce the risk of regressions.

Steps to Reproduce:

  • npx nyc npm test
  • npx nyc report --reporter=html
  • start coverage/index.html
  • In the report, navigate to lib/domains/models
  • Navigate to Context.js, Studio.js, Preview.js, SpecificationFile.js

Happy to raise a PR for this if the maintainers approve

Activity

  1. Ishita-190 commented on Feb 14, 2026

    @Ishita-190
    Author

    @Souvikns @AayushSaini101 @Shurtu-gal please take a look at this

  2. 1164148-7-eng commented on Mar 28, 2026

    @1164148-7-eng

    /attempt #2016

    I've claimed this issue. Working on it now! 🚀

  3. 1164148-7-eng commented on Mar 31, 2026

    @1164148-7-eng

    /attempt #2016

    I've claimed this issue. Working on it now! 🚀

  4. github-actions commented on Jul 29, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has not had recent activity 😴

    It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

    There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

    Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

    Thank you for your patience ❤️

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions