Skip to content

Slightly wrong error message for missing main function in test module #4420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GearsDatapacks opened this issue Apr 1, 2025 · 3 comments · May be fixed by #4448
Open

Slightly wrong error message for missing main function in test module #4420

GearsDatapacks opened this issue Apr 1, 2025 · 3 comments · May be fixed by #4448
Labels
good first issue Good for newcomers help wanted Contributions encouraged priority:medium

Comments

@GearsDatapacks
Copy link
Member

When running gleam test, if the project_test module doesn't have a main function, this error is printed:

error: Module does not have a main function

`project_test` does not have a main function so the module can not be run.
Hint: Add a public `main` function to to `src/project_test.gleam`.

Which isn't quite correct, as the file is test/project_test.gleam not src/project_test.gleam

@lpil
Copy link
Member

lpil commented Apr 2, 2025

oops, thank you

@lpil lpil added help wanted Contributions encouraged good first issue Good for newcomers priority:medium labels Apr 2, 2025
@scristobal
Copy link
Contributor

I checked the code and it looks simple enough. I'd like work on it. If that's ok.

@GearsDatapacks
Copy link
Member Author

Go ahead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Contributions encouraged priority:medium
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants