Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

[BUG] Tests for Imported Modules Running During Module Test Execution #395

Open
musab-mah-7 opened this issue May 22, 2024 · 0 comments
Open
Labels
bug fix Something isn't working

Comments

@musab-mah-7
Copy link
Collaborator

Describe the bug

When running tests for a specific Jac module that has other modules imported, all tests, including those of the imported modules, are executed. For example, in memory.jac, where session.jac is imported, running tests for memory.jac also triggers the session tests. This behavior is problematic because if there are multiple imports, all tests will be run. This has forced me to comment out the session tests to work solely with the memory tests. However, with multiple or nested imports, this can become unmanageable and prone to errors.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Jac module A.jac that imports another module B.jac.
  2. Write tests for both A.jac and B.jac.
  3. Run tests specifically for A.jac.

Expected Behavior
Only the tests for A.jac should run.

Actual Behavior
Tests for both A.jac and B.jac run.

Environment
Jac-Lang version:

image

@musab-mah-7 musab-mah-7 added the bug fix Something isn't working label May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug fix Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant