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

Match Automated Testing #495

Merged
merged 13 commits into from
Nov 4, 2020
Merged

Match Automated Testing #495

merged 13 commits into from
Nov 4, 2020

Conversation

maxTarlov
Copy link
Contributor

@M130 and I finished turning @nvh4 's test methods into automated tests using mocha. There is still some naming of tests to occur, but personally I would like feedback before editing all of the names.

Proposed naming scheme: describe blocks are labeled according to their corresponding tableau in @nvh4 's file, followed by a colon, followed by the syntax parameters (if any) that are being held constant in that test block. It blocks are named according to the varied prosody parameters.

Example:

Tableau 10: nonMinSyntax

  • maxProsody
  • nonMaxProsody
  • minProsody
    ...

@jbellik
Copy link
Contributor

jbellik commented Nov 2, 2020

This looks great! I agree the names need some work for transparency. A first step will be to include the bracket representation of both the stree and ptrees in the text for each it(), I think. Or if the trees are the same within each block, the bracket representations could go in the describe() statements.

@jbellik
Copy link
Contributor

jbellik commented Nov 2, 2020

Other naming improvements can be made too but let's discuss them during the meeting tomorrow

@maxTarlov
Copy link
Contributor Author

A first step will be to include the bracket representation of both the stree and ptrees in the text for each it(), I think. Or if the trees are the same within each block, the bracket representations could go in the describe() statements.

The same stree is used for every assertion, but each "it" block uses at least two ptrees, and most use about 6. Maybe instead of putting the bracket representation of all 3-6 trees in the it block, we can show the trees in the message of each assertion. In this case, you would only see a tree if an assertion fails.

(If you look at @nvh4 's tests, each "describe" block is a tableau and each "it" block is a constraint column in that tableau.)

@jbellik
Copy link
Contributor

jbellik commented Nov 3, 2020 via email

@maxTarlov
Copy link
Contributor Author

I have implemented a version of the above proposal for Tableau 1. To see it in action, pick an arbitrary assertion in the first describe block and change the expected value.

@jbellik
Copy link
Contributor

jbellik commented Nov 3, 2020

Add README type info at the top, including references to Nick Van Handel's files & possibly blocks of his text from the pdf file.

@jbellik jbellik merged commit d4bc5b0 into master Nov 4, 2020
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.

3 participants