Skip to content
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

fix(test): switch the path for unit testing to an absolute one #37

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

tgragnato
Copy link
Contributor

Unit testing works in a containerised environment because the relative path for the workdir is set by the environment to /tmp.

Unit testing is currently broken in the IDE because the relative path for the workdir is the basedir of the file you are testing.

The issue is that the code is developed assuming that the workdir is fixed, but during local testing this assumption is violated.

Unit testing works in a containerised environment because the relative path for the workdir is set by the environment to `/tmp`.

Unit testing is currently broken in the IDE because the relative path for the workdir is the basedir of the file you are testing.

The issue is that the code is developed assuming that the workdir is fixed, but during local testing this assumption is violated.
@tgragnato tgragnato added bug Something isn't working testing Related to unit testing labels Jan 5, 2024
@tgragnato tgragnato self-assigned this Jan 5, 2024
@tgragnato tgragnato merged commit 65492c5 into main Jan 5, 2024
3 checks passed
@tgragnato tgragnato deleted the bugfix/unit_testing_without_containers branch January 5, 2024 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working testing Related to unit testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant