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

Add smoketests for all the tools/proofers/*.php pages. #1162

Merged
merged 1 commit into from
Mar 29, 2024

Conversation

bpfoley
Copy link
Collaborator

@bpfoley bpfoley commented Mar 27, 2024

Add a placeholder project directory to allow some tests to work and re-enable some other pages that also require a project dir.

@@ -575,7 +609,7 @@ def main() -> int:
if args.verbose:
print(data.decode())
if status not in expect_status or test_failed(logs):
print(f'Status: {status}')
print(f'Status: {status} (expected {epected_status})')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(f'Status: {status} (expected {epected_status})')
print(f'Status: {status} (expected {expect_status})')

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Time to get that linter :)

@@ -120,6 +120,12 @@ jobs:
- name: Add smoketest DB entries
run: |
mysql -uroot -proot < SETUP/smoketests/test_tables.sql
- name: Create smoketest project dirs
run: |
mkdir -p $HOME/projects/projectID5e23a810ef693
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put this inside a "smoketest_prep.sh" script and call it here rather than put the logic in the CI itself?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@bpfoley bpfoley force-pushed the more-smoke branch 2 times, most recently from 8065d70 to f5d464f Compare March 27, 2024 23:00
Add a placeholder project directory to allow some tests to work
and re-enable some other pages that also require a project dir.
@cpeel cpeel merged commit ad54391 into DistributedProofreaders:master Mar 29, 2024
10 checks passed
@bpfoley bpfoley deleted the more-smoke branch March 29, 2024 16:23
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 this pull request may close these issues.

2 participants