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

bob: enable all tests #24

Closed
wants to merge 1 commit into from
Closed

Conversation

michel-slm
Copy link

Enable the tests currently disabled in bob_tests -- without them an incomplete implementation of bob would pass.

@kytrinyx
Copy link
Member

Was there a particular reason why you enabled all of the tests?

@michel-slm
Copy link
Author

@kytrinyx not enabling them means the specification is not being exercised fully. Unless the disabled tests are intentional to allow people to develop their solution incrementally and enable the tests as they tackle each part?

In the other exercises normally the entire tests are enabled out of the box - tests would fail at the beginning but it does not matter, right?

@kytrinyx
Copy link
Member

Yes, the purpose is to allow people to develop their solution incrementally.

In the other exercises normally the entire tests are enabled out of the box

In the other problems in Elixir?

In some languages this is done for all the problems, in others for none of them. In a few languages it's done for the first problem or first few.

There has already been some discussion of this here and here.

As you'll see from the discussions I'm quite open to removing skips, but I want to have a specific reason to do so in the language we're discussing. I suspect that it's the right thing to do for elixir -- rarely will a beginner start with elixir, so my guess is that the hand-holding is less than helpful.

For elixir, it looks like we are skipping tests in the following test files:

anagram/anagram_test.exs
bob/bob_test.exs
gigasecond/gigasecond_test.exs
grade-school/grade_school_test.exs
leap/leap_test.exs
phone-number/phone_number_test.exs
point-mutations/point_mutations_test.exs
rna-transcription/rna_transcription_test.exs

If we remove skips in Bob we should remove skips in the other one as well.

@michel-slm
Copy link
Author

Good point; that's a good idea. I'll focus on updating the documentation then? I like the way xcpp/bob documents the use of an ifdef marker that disable tests below it, and that the user should move this marker as they progress through the test suite.

@michel-slm michel-slm closed this Oct 31, 2014
@kytrinyx
Copy link
Member

Yes, either updating the documentation, or deleting all the skips throughout. The ifdef marker is an interesting approach.

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