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

Write tests for all languages #12

Open
roerohan opened this issue Sep 29, 2020 · 1 comment
Open

Write tests for all languages #12

roerohan opened this issue Sep 29, 2020 · 1 comment
Labels
enhancement New feature or request hacktoberfest Hacktoberfest 2020 help wanted Extra attention is needed

Comments

@roerohan
Copy link
Contributor

roerohan commented Sep 29, 2020

Write tests for all languages

Currently, code-executor supports all languages mentioned in src/langs. There are no script yet to test if these languages work properly. You can add tests in test for each language.

Proposed structure

  • Each language has a folder inside test, the name of the folder is the name of the language
  • There are two scripts in each folder, one for master and one for the worker.

You might consider using a testing library such as mocha or chai. However, for this, timeouts need to be configured properly since these tests will be running on Github Actions in the future. Nonetheless, adding a unit testing library for each language is not a priority right now, verifying that the Dockerfiles for all the languages work can be done with or without mocha or chai.

@roerohan roerohan added enhancement New feature or request help wanted Extra attention is needed hacktoberfest Hacktoberfest 2020 labels Sep 29, 2020
@roerohan roerohan pinned this issue Sep 29, 2020
@ashikka
Copy link
Member

ashikka commented Sep 30, 2020

I'll do this, @alias-rahil can you assign this to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest Hacktoberfest 2020 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants