-
Notifications
You must be signed in to change notification settings - Fork 248
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
Isolation of end-to-end tests #2047
Conversation
675e582
to
7e4c57c
Compare
In these tests, different commands are used to test if a binary is available in PATH:
Which one would work on both MacOS and Linux? |
Some of the plugins (and tests) require some tools to be available in the PATH, e.g. the pipx forge requires pipx to be in the PATH. In the e2e tests, what should be done?
|
e4a27d7
to
46e61be
Compare
The ubi test is failing because the test expects ubi to be installed in the dev container, which is not the case right yet. |
f2f00c9
to
298397b
Compare
maybe try testing on the latest changes since I should have fixed this bug yesterday |
I think bootstrapping with mise would be the best approach generally if we can get it working, backends are definitely still a bit wonky though so we'll just do the best we can |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy will stop sending the deprecated coverage status from June 5th, 2024. Learn more |
e2e/plugins/test_tiny
Outdated
source "$(dirname "$0")/assert.sh" | ||
# shellcheck shell=bash | ||
|
||
cat >.mise.toml <<CONF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is such a tiny nit I don't even want you to change the current code, but in the future I prefer sticking to EOF
for all here-docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes. I wrote this at the very beginning then I switched to EOF but forgot this one.
* chore(asdf-yarn): fixed url * chore(sync): added workflow * fix: asdf-yarn * chore: release 2024.4.2 * Commit from GitHub Actions (test) --------- Co-authored-by: Jeff Dickey <216188+jdx@users.noreply.github.com>
…5.0 (jdx#1947) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This prevents cargo-binstall from hitting the API rate limit if GITHUB. The argument is not persisted in the image; it is only available at build time.
There are still slow, but at least they pass in the dev container.
…edicated workflow.
This is an attempt to isolate the end-to-end tests from each others and from the configuration of the mise project itself.
It takes the following measures:
$TMPDIR
//tmp
folder. This folder is removed if the test succeeds.env --ignore-environment ...
to tightly control the environment variables. This includes overriding$PATH
with a default value._slow
. They are skipped by run_all_tests unlessTEST_ALL=1
.Note: this will require tests on MacOS.