Skip to content

Conversation

@sschulz92
Copy link
Contributor

@sschulz92 sschulz92 commented Sep 1, 2025

As part of this PR I would like to decouple the execution of tests and the local installation of the plugin. In one of my Pull-Requests I wanted to have a quick feedback if the changes are OK without the installation as I was not done yet. To allow users customized options, they are simply decoupled. Install without running tests? No issue.

python build.py --test --install was not installing anything before my change
💹 python build.py --test --install is running the tests and installs gauge-python afterwards

On top, if you have test failures, the coverage file was not created as part of the coverage run ... command, so that the line os.rename(".coverage", f".coverage.{i}") failed: no file available to rename --> FileNotFoundError exception. To overcome this behaviour, I am using the exit-code information to break the look immediately.

@sschulz92 sschulz92 force-pushed the DECOUPLE_INSTALL_AND_TESTS branch from 786359f to f3e4dd7 Compare September 1, 2025 09:20
@sschulz92 sschulz92 marked this pull request as draft September 1, 2025 11:42
@sschulz92 sschulz92 force-pushed the DECOUPLE_INSTALL_AND_TESTS branch from f3e4dd7 to 3f74933 Compare September 1, 2025 11:43
@sschulz92 sschulz92 marked this pull request as ready for review September 1, 2025 11:50
@chadlwilson
Copy link
Contributor

Can you please add summaries to your PR to explain what you're trying to achieve? Why is the flexibility needed? What have you tested/considered? Etc.

@sschulz92
Copy link
Contributor Author

Can you please add summaries to your PR to explain what you're trying to achieve? Why is the flexibility needed? What have you tested/considered? Etc.

Good hint, just updated the description!

@chadlwilson chadlwilson merged commit 25880e4 into getgauge:master Sep 1, 2025
15 checks passed
@chadlwilson
Copy link
Contributor

LGTM thx!

@sschulz92 sschulz92 deleted the DECOUPLE_INSTALL_AND_TESTS branch September 1, 2025 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants