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

Integrate with mocha and write tests #9

Open
imor opened this issue Oct 10, 2013 · 8 comments
Open

Integrate with mocha and write tests #9

imor opened this issue Oct 10, 2013 · 8 comments
Assignees

Comments

@imor
Copy link
Owner

imor commented Oct 10, 2013

No description provided.

@ghost ghost assigned imor Oct 10, 2013
@houd1ni
Copy link

houd1ni commented Nov 10, 2015

How about Jasmine?

@imor
Copy link
Owner Author

imor commented Nov 10, 2015

Go ahead, I don't think I have a strong preference for mocha. Something is better than nothing.

@valera-rozuvan
Copy link
Contributor

Do you want unit tests of actual JS functions, or e2e tests of actually running the code on some chess games?

@imor
Copy link
Owner Author

imor commented May 16, 2018

You can start with unit tests and later add integration tests with actual chess engines.

@valera-rozuvan
Copy link
Contributor

valera-rozuvan commented May 17, 2018

I am writing JS unit tests, and running them using karma. Karma requires a recent Node.js version. From their docs:

Karma currently works on Node.js 4.x, 5.x, 6.x, 7.x, and 8.x. See FAQ for more info. 

Are you OK with bumping engines.node to >=4.0 in package.json?

@valera-rozuvan
Copy link
Contributor

valera-rozuvan commented May 17, 2018

I decided to just use mocha 😄 But it also requires Node v4 or higher. See their docs:

To install Mocha v3.0.0 or newer with npm, you will need npm v2.14.2 or newer.
Additionally, to run Mocha, you will need Node.js v4 or newer.

@valera-rozuvan
Copy link
Contributor

Here is the initial PR #26 .

@imor
Copy link
Owner Author

imor commented May 18, 2018

Thanks 👍. Merged.

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

3 participants