Problem-specifications: Assemble exercise README including the docs/TESTS.md?

Created on 18 Apr 2016  路  5Comments  路  Source: exercism/problem-specifications

At the moment the README for each exercise is assembled using:

  • the name of the exercise (wordified from the problem slug)
  • the blurb (from the YAML file in x-common)
  • the description (from the Markdown file in x-common)
  • the language-track SETUP.md file
  • the exercise-specific HINTS.md file

The docs/TESTS.md often contains excellent and relevant information about how to run the tests. Should we include that in addition to the SETUP.md file (and only have something in SETUP.md if we need something other than "how to run the tests")? That way we would not have to duplicate information between the http://exercism.io/languages/:track_id page and the exercise README.

discussion

Most helpful comment

I am seeing that a few tracks have a bit of duplicate information between their SETUP and TESTS files:

(I did not perform a very comprehensive survey, as you can see)

This tells me a few things:

  • It could be possible for tracks to deduplicate some of this information if docs/TESTS.md would be included in the README.
  • At the same time, the migration-process _maybe_ needs to involve an opt-in for tracks? If this were suddenly turned on for all tracks, we would actually see some duplicate information in READMEs.

Another thing to consider is that if we value brevity in the README, some tracks have a very brief SETUP.md and a more verbose docs/TESTS.md - maybe those tracks don't _want_ their TESTS.md included with every README?

(again, I was not very comprehensive, sorry)

All 5 comments

I like this idea. You effectively separate the general language track setup (which can contain things like installing frameworks etc.) from the test running setup.

I am seeing that a few tracks have a bit of duplicate information between their SETUP and TESTS files:

(I did not perform a very comprehensive survey, as you can see)

This tells me a few things:

  • It could be possible for tracks to deduplicate some of this information if docs/TESTS.md would be included in the README.
  • At the same time, the migration-process _maybe_ needs to involve an opt-in for tracks? If this were suddenly turned on for all tracks, we would actually see some duplicate information in READMEs.

Another thing to consider is that if we value brevity in the README, some tracks have a very brief SETUP.md and a more verbose docs/TESTS.md - maybe those tracks don't _want_ their TESTS.md included with every README?

(again, I was not very comprehensive, sorry)

I do worry about duplicate information, among many other things in my life, but I believe it's worth keeping docs/TESTS.md separate from the exercise README's, so that the docs can provide in depth detailed information, whereas the TRACK_HINTS can just be a small reminder of anything pertinent as well as a link to any suggested help/resources, without cluttering up the README making it a TLDR document. If there is any significant concern about duplication I suppose one could always just link to the docs as seen on the exercism.io language track page.

It sounds like we decided to keep going as we were. I'm going to close this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

budmc29 picture budmc29  路  4Comments

kytrinyx picture kytrinyx  路  4Comments

petertseng picture petertseng  路  3Comments

kytrinyx picture kytrinyx  路  4Comments

bubo-py picture bubo-py  路  4Comments