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 --only task_id={number} to useful mix test options #1531

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

jrgtt
Copy link
Contributor

@jrgtt jrgtt commented Oct 14, 2024

Hello, this is my first time trying to contribute here. I have read HELLO.md and CONTRIBUTING.md, and I hope this PR meets the criteria.

I came across this option while inspecting the help guide of mix test and I have found it quite fitting for the way I approach learning exercises in the platform. Which is:

  1. Read the instructions
  2. Pull the code with the CLI command
  3. Read the next instruction (task) and try to implement it locally
  4. Run mix test --only task_id:{instruction_number}
  5. Fix it if needed
  6. Repeat from step 3 for the next instruction
  7. After the last instruction is completed, run mix test to check everything

Before finding out about this option I was running all tests together but that created a lot of noise, now I can tackle each instruction one after the other. That's why I think sharing it with other users who prefer working locally on the exercises could be useful.

Copy link
Contributor

Thank you for contributing to exercism/elixir 💜 🎉. This is an automated PR comment 🤖 for the maintainers of this repository that helps with the PR review process. You can safely ignore it and wait for a maintainer to review your changes.

Based on the files changed in this PR, it would be good to pay attention to the following details when reviewing the PR:

  • General steps
    • 🏆 Does this PR need to receive a label with a reputation modifier (x:size/{tiny,small,medium,large,massive})? (A medium reputation amount is awarded by default, see docs)

Automated comment created by PR Commenter 🤖.

docs/TESTS.md Outdated Show resolved Hide resolved
@angelikatyborska
Copy link
Member

Thanks a lot! That's a very useful addition 💜

@angelikatyborska angelikatyborska merged commit 3421ff1 into exercism:main Oct 14, 2024
8 of 9 checks passed
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