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

Update existing cram tests with new practices #1176

Open
7 of 16 tasks
victorlin opened this issue Mar 9, 2023 · 0 comments
Open
7 of 16 tasks

Update existing cram tests with new practices #1176

victorlin opened this issue Mar 9, 2023 · 0 comments

Comments

@victorlin
Copy link
Member

victorlin commented Mar 9, 2023

Apply current recommendations to all tests:

  1. Keep cram files modular. This makes it easier to see which command is failing.
  2. Create files in the initial working directory, as it is a temporary working directory unique to the test. Note that the name of the $TMP directory is misleading - although it is temporary, it is shared across all tests so you'll have to explicitly remove files at the end of each test to avoid affecting other tests. The initial directory of each test is a unique directory within $TMP.

Everything works fine, but it would be nice to update across the board so new changes won't continue to follow old patterns.

Checklist

jameshadfield added a commit that referenced this issue Dec 11, 2023
The move to "Creating files in the initial working directory" is
motivated by
<#1344 (comment)>
and <#1176>.

Additionally, I remove the pushd commands which were confusing (there
were multiple!) and use variables to refer to common directories to
improve readability.
jameshadfield added a commit that referenced this issue Dec 19, 2023
The move to "Creating files in the initial working directory" is
motivated by
<#1344 (comment)>
and <#1176>.

Additionally, I remove the pushd commands which were confusing (there
were multiple!) and use variables to refer to common directories to
improve readability.
@victorlin victorlin mentioned this issue Sep 26, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Backlog
Development

No branches or pull requests

1 participant