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 general CLI utilities and expand tests #2

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Conversation

mythmon
Copy link
Member

@mythmon mythmon commented Apr 19, 2024

This adds most of the tools from our discussion yesterday, though I left a few out that were harder to figure out.

I also made some changes to the tests. The main motivation here was that the Node.js test framework supports running tests in parallel, but only file-by-file. With the tests spread out over multiple files like this, it speeds things up significantly.

I considered another strategy, which would be to define all the tests in one place, and then have a tests/shard1.test.ts, tests/shard2.test.ts, etc. I decided that I didn't like the inflexibility of that, and would rather have the tests grouped by topic.

@mythmon mythmon requested review from Fil and mootari April 19, 2024 20:15
tests/archives.test.ts Outdated Show resolved Hide resolved
tests/data-manip.test.ts Outdated Show resolved Hide resolved
tests/dataloader-languages.test.ts Outdated Show resolved Hide resolved
tests/general-cli.test.ts Outdated Show resolved Hide resolved
tests/images.test.ts Outdated Show resolved Hide resolved
tests/networking.test.ts Outdated Show resolved Hide resolved
tests/text-manip.test.ts Outdated Show resolved Hide resolved
tests/dataloader-languages.test.ts Show resolved Hide resolved
@mythmon mythmon enabled auto-merge (squash) April 22, 2024 15:20
@mythmon mythmon merged commit c67085e into main Apr 22, 2024
1 check passed
@mythmon mythmon deleted the mythmon/240418/cli-utils branch April 22, 2024 15:24
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