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

TestBox run should use webroot when resolving testbox location in ensureTestBox() #9

Closed
wants to merge 1 commit into from

Conversation

gpickin
Copy link
Contributor

@gpickin gpickin commented May 1, 2024

Description

Currently, if your testbox folder is not in the current folder where your server.json lives, ie, a subfolder like /test-harness or /app the ensureTestBox() function fails, and then installs testbox into the testbox-cli folder.

In CI, this testbox-cli folder never has a testbox in it, because its built from an image, so this means every time we run tests, it installs testbox over and over and over again.

This fix users the server info to pass the webroot of the current server to the resolvePath() command, to ensure we look for testbox in the webroot.

Improvement: Maybe we look in the current folder, and in the webroot?

Please note that all PRs must have tests attached to them

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

Issues

All PRs must have an accompanied issue. Please make sure you created it and linked it here.

Type of change

Please delete options that are not relevant.

  • Bug Fix
  • Improvement
  • New Feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project cfformat
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

…reTestBox

Currently, if your testbox folder is not in the current folder where your server.json lives, ie, a subfolder like /test-harness or /app the ensureTestBox() function fails, and then installs testbox into the testbox-cli folder.

In CI, this testbox-cli folder never has a testbox in it, because its built from an image, so this means every time we run tests, it installs testbox over and over and over again.

This fix users the server info to pass the webroot of the current server to the resolvePath() command, to ensure we look for testbox in the webroot. 

Improvement: Maybe we look in the current folder, and in the webroot?
@gpickin gpickin added the bug Something isn't working label May 1, 2024
@gpickin gpickin requested a review from lmajano May 1, 2024 20:41
@lmajano
Copy link
Contributor

lmajano commented Sep 9, 2024

merged manually. Due to some other changes

@lmajano lmajano closed this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants