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 running of component tests using Windows Powershell #12481

Closed
NyndoND opened this issue Jun 18, 2023 · 1 comment · Fixed by #12482
Closed

Fix running of component tests using Windows Powershell #12481

NyndoND opened this issue Jun 18, 2023 · 1 comment · Fixed by #12482

Comments

@NyndoND
Copy link

NyndoND commented Jun 18, 2023

I followed the developer guide provided in the project documentation, but when I run the command to check the code line coverage of the tests, I get the following error:
I try to run: ./gradlew componentTests
and: ./gradlew componentTests jacocoReport

image
Guide link I followed: https://teammates.github.io/teammates/development.html

@guilherme-puida
Copy link
Contributor

This happens when running the componentTests under Powershell. The del command only exists in cmd, so it errors out when trying to delete temporary files created by the afterTestClosure in build.gradle.

A simple fix would be changing the afterTestClosure to be more shell-agnostic. I'll open a PR fixing this in a few moments :^)

@zhaojj2209 zhaojj2209 changed the title Errors when I run the backend tests Fix running of component tests using Windows Powershell Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants