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

Issue 2953 (and issue 2745) Revise Track Documentation #2989

Merged
merged 17 commits into from
Mar 30, 2022

Conversation

BethanyG
Copy link
Member

Per issues #2953 and #2745, updated track student documentation.

  • Added pytest -o markers=task invocation to exercises/shared/tests.md and docs/TESTS.md
  • Added pytest configuration options and pytest.ini instructions to exercises/shared/tests.md and docs/TESTS.md
  • Revised and updated INSTALLATION.md, LEARNING.md, RESOURCES.md and TOOLS.md

@BethanyG BethanyG added the x:size/large Large amount of work label Mar 30, 2022
@github-actions

This comment was marked as resolved.

@BethanyG
Copy link
Member Author

Please see PR 93 in the Python-test-runner repo for the tomli dependency that (I suspect) is breaking the CI.

docs/INSTALLATION.md Show resolved Hide resolved
@@ -66,7 +66,7 @@ jobs:
run: pip install dataclasses

- name: Install pytest
run: pip install pytest~=6.2.5
run: pip install pytest
Copy link
Member

Choose a reason for hiding this comment

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

I assume this will install the latest version. Usually, I recommend pinning things in CI to prevent things from suddenly breaking. I assume you changed this because you want things to work with the latest version?

Copy link
Member Author

@BethanyG BethanyG Mar 30, 2022

Choose a reason for hiding this comment

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

Yes. Sadly, the latest version is the one that can use tomli. Earlier versions use the toml lib instead. However, I could pin it to the latest version (7.0.1, due to python 3.6 compatibilities).

I did have it pinned to 6.2.5 for the very reason you cited - it upgraded itself a while ago and broke everything.

However, due to a nasty combination of psf/black#2964 for Black (the formatter used in the generate_tests.py) and the move toward tomli for toml parsing in the community, I sorta had to upgrade.

Both the latest version of Black (needed in order to fix that _unicodefun error we're getting) and the latest version of Pytest use tomli. Once I changed data.py to use tomli for Black, I needed to then upgrade pytest as well..

Copy link
Member

Choose a reason for hiding this comment

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

However, I could pin it to the latest version (7.1).

That could be a good idea. I'll let you decide of course :)

docs/TESTS.md Show resolved Hide resolved
docs/TESTS.md Show resolved Hide resolved
@@ -1,19 +1,154 @@
# Tests
Copy link
Member

Choose a reason for hiding this comment

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

There is a lot of information in this file. As this file is distributed along with every downloaded exercise, we envisioned this to be a fairly small, to reduce the likelihood of people just not reading it. Quoting the docs:

The instructions should be short and to the point.

What I often see done is to only mention the basics in this file, and then link to the track TESTS.md doc on the website for more information.

Copy link
Member Author

Choose a reason for hiding this comment

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

I considered doing that. The original was quite succinct and included a pointer to the website, but I then got a lot of complaints about the pytest warnings and not being able to find information, and sort of went in the other direction.

Let me see what I can do to pare this down a bit.

Copy link
Member

Choose a reason for hiding this comment

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

Right. That's background information I didn't have, thanks!

@BethanyG BethanyG force-pushed the issue-2953-revise-help-docs branch from 854a0fb to 1629f6f Compare March 30, 2022 22:00
@BethanyG
Copy link
Member Author

Many thanks for the review @ErikSchierboom!

@BethanyG BethanyG merged commit fa135cb into exercism:main Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:size/large Large amount of work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Support Docs] Update Support Docs with Better & Clearer Pytest.ini info.
2 participants