Skip to content

bob: setting up generated tests #493

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

Closed
wants to merge 1 commit into from

Conversation

raadler
Copy link
Contributor

@raadler raadler commented Nov 25, 2016

No description provided.

@raadler raadler changed the title bob:add bookkeeping bob: add bookkeeping Nov 25, 2016
@kotp
Copy link
Member

kotp commented Nov 26, 2016

Are you interested in setting up the generator for these and having the versions mark the occasion? This is when the bookkeeping becomes important, since it is incremented with the generators to help us keep track of solutions.

At the moment, there is no reason to change from "Version 0", no change driving it other than to add the bookkeeping itself.

What do you think @raadler, are you up for the task of putting the generator in place?

@raadler
Copy link
Contributor Author

raadler commented Nov 26, 2016

@kotp Sure. Edit: Looking at the documentation now.

@kotp
Copy link
Member

kotp commented Nov 26, 2016

You can use this same PR... it will automatically update. May want to change the title to something that indicates setting up generated tests.

@raadler raadler changed the title bob: add bookkeeping bob: setting up generated tests Nov 26, 2016
@raadler
Copy link
Contributor Author

raadler commented Nov 27, 2016

@kotp A few questions about the generator setup steps: it mentions x-common/$problem.json. Is that x-common/exercises/bob/canonical-data.json in this case? (The path is a bit different than described.) And am I creating the lib/bob.rb? (Some files mentioned in the readme seem to have been renamed, so the readme might need to be edited at some point.)

@Insti
Copy link
Contributor

Insti commented Nov 27, 2016

x-common/$problem.json. Is that x-common/exercises/bob/canonical-data.json in this case?

Yes

And am I creating the lib/bob.rb?

You will need to create:
lib/bob_cases.rb
exercises/bob/example.tt
exercises/bob/.version

If you run the generator with: bin/generate bob it will generate exercises/bob/bob_test.rb

The documentation is a bit out of date unfortunately. We're in the middle of changing the process to make everything easier, part of that will involve updating the documentation.

@Insti
Copy link
Contributor

Insti commented Nov 27, 2016

Have a look at the recent Triangle generator for an up-to-date example.

@kotp
Copy link
Member

kotp commented Feb 18, 2017

@raadler I wanted to bump this. If you want we can pick this up...

@raadler
Copy link
Contributor Author

raadler commented Feb 19, 2017

@kotp That would be great. I've been super busy and this has fallen through the cracks, so if someone has more time for it, go ahead.

@kotp
Copy link
Member

kotp commented Feb 20, 2017

OK @raadler I am going to close this issue to allow someone else to run with it. If you find that it has not happened yet, feel free to start from scratch or open this one up and force a push to it to get it rolling again!

@kotp kotp closed this Feb 20, 2017
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