Skip to content

bug: kit run-tests does not work with the app framework #325

@Gohlub

Description

@Gohlub

Describe the bug
The ongoing changes in the app framework and hyperprocess macro have broken the testing framework. I did some digging but I think I need to look into run-tests module for more detail. Overall, based on my observation, the issue seems to be with the testing package /target directory, which is separate from the main package /target directory (maybe we want to consolidate all of them to be in /target?). Nevertheless, there seems to be multiple elements to this bug (which I think are all artifacts of the fact that we just didn't handle tests when working on the app framework after Luc left), but the issues are:

  • The testing package WIT is not being generated, making the test package build to fail
  • There seem to be some issues with caller utils and how they are imported in the testing package (probably related to build: consolidate target dir into one at package level #314 since that changed the origin caller utils.

I don't recall correctly, but I did manage to solve the first problem by hard coding the WIT file (but it still fails to build due to dependency issues). The second problem, however, is downstream of the #314 pull request (I think).

Nick mentioned that kit does stuff lazely, but in this case since tests depend on caller_utils, we might need to bundle the WIT generation at least.

Otherwise, running kit run-tests should fail if the main package hasn't been built.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://github.com/Gohlub/hyperprocess-template
  2. Clone it, and run kit b -hyperapp and kit run-tests

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions