-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Spec generator - Respect tests.toml #524
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,15 +65,6 @@ describe('state-of-tic-tac-toe', function() | |
assert.are.same('win', state_of_tic_tac_toe.gamestate(board)) | ||
end) | ||
|
||
it('finished game where x won via middle row victory', function() | ||
local board = { | ||
'O O', -- | ||
'XXX', -- | ||
' O ' -- | ||
} | ||
assert.are.same('win', state_of_tic_tac_toe.gamestate(board)) | ||
end) | ||
Comment on lines
-68
to
-75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is the test that was manually removed. It must have slipped back in the next time the spec generator was run. We should be protected against this now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That was a different test case I accidentally neglected to remove. The case I removed:
was essentially the same as
but with a different error string. (I stopped checking the error strings, anticipating the test case might get regenerated.) In general, does this track have a preference for or against checking error strings? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
At least for recent tests I've been checking the strings. I don't feel strongly one way or the other. |
||
|
||
it('finished game where x won via middle row victory', function() | ||
local board = { | ||
'O ', -- | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-generated all specs to make sure that we hadn't inadvertently included tests that shouldn't have been included. When I did this it reverted the change that was made in #513 to fix an issue with the test runner that has since been resolved.