Skip to content

Update test suite for exercise: rna-transcription #606

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
ErikSchierboom opened this issue Oct 2, 2018 · 6 comments
Closed

Update test suite for exercise: rna-transcription #606

ErikSchierboom opened this issue Oct 2, 2018 · 6 comments

Comments

@ErikSchierboom
Copy link
Member

ErikSchierboom commented Oct 2, 2018

The rna-transcription exercise's test suite is automatically generated using its test generator. This test generator converts the rna-transcription's canonical data into the test suite just mentioned.

The canonical data for the rna-transcription exercise has been updated since the test suite was last generated. We should be updating the test suite to the latest version. To do this, one should:

  • Run the test generator for the exercise. This is done by opening a command prompt in the generators directory and running: dotnet run -e rna-transcription.
  • At this point, you should check to see what the updated test suite looks like. There are basically two options: one, the test generator was compatible with the updated canonical data and the test suite was updated and still has the same structure. The second option is that the test generator could not process the changed canonical data, in which case the generator has to be modified. In that case, you should check out the generator docs in which the generators setup is explained in detail.
  • Finally, please make sure that the example implementation passes all the tests. You can verify this by opening a command prompt in the root directory and running ./build.sh --exercise=rna-transcription or .\build.ps1 -Exercise rna-transcription, depending on your operating system.
@mpriestman
Copy link
Contributor

I looked at taking this issue, but I ran into a problem running the generator. Do we expect it to work on Linux? It looks like it can't find a DLL relating to Git:

Using launch settings from /home/michael/git/mpriestman/fsharp/generators/Properties/launchSettings.json...
[10:07:44 INF] Re-generating test classes...
[10:07:44 INF] Cloning repository...

Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'git2-1196807' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgit2-1196807: cannot open shared object file: No such file or directory
   at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
   at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()

Any ideas? Do I need Mono installed?

@mpriestman
Copy link
Contributor

OK. Found someone else had the same problem on Ubuntu. It looks like there are some native libraries for Linux, perhaps something isn't quite set up correctly with the LibGit2Sharp package. I'll investigate when I have some free time.

@ErikSchierboom
Copy link
Member Author

I haven't yet tested on Linux, although I can confirm that it works fine on macOS. Let me know if you find anything, might indeed be a bug with the LibGit2Sharp package.

@mpriestman
Copy link
Contributor

Yep, they look relevant. I'll have a dig in this evening when I get home. Thanks!

@ErikSchierboom
Copy link
Member Author

Closed by #646.

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

No branches or pull requests

2 participants