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

Unit Testing and CI #41

Closed
cvalenzuela opened this issue Jan 31, 2018 · 12 comments
Closed

Unit Testing and CI #41

cvalenzuela opened this issue Jan 31, 2018 · 12 comments

Comments

@cvalenzuela
Copy link
Member

cvalenzuela commented Jan 31, 2018

As briefly discussed with @shiffman, this project should at some point have a testing framework and CI

@shiffman
Copy link
Member

I have been learning jest for a video about "continuous integration" so would be glad to participate in helping get this started!

@aparrish
Copy link

just chiming in to give encouragement for this—a test framework and CI makes it so much easier for people to contribute to an open source project.

@shiffman
Copy link
Member

Let's discuss tomorrow! Maybe I can do a quick tutorial as practice for my video tutorial and anyone who wants to could work on it at the meeting.

@cvalenzuela
Copy link
Member Author

sounds good!

@shiffman
Copy link
Member

shiffman commented Feb 1, 2018

Making a list of tests:

  • for utils.js test correct image output for a given input.
  • test models -- squeezenet

to be continued. . . .

@cvalenzuela
Copy link
Member Author

commits af5d848 and 5f31edc added support for Jest and a short description in the CONTRIBUTING.md guide on how to run and create tests.

There's also a new description for the website in CONTRIBUTING.md

We can now start creating unit test.

Next steps will be to implement CI and better merging and branching practices.

@cvalenzuela cvalenzuela changed the title Testing Unit Testing and CI Feb 5, 2018
@shiffman
Copy link
Member

shiffman commented Feb 5, 2018

Wonderful, I just did a video tutorial series about testing and CI (with jest and CircleCI). When those are published I can include that as material for getting started contributing. . .

shiffman added a commit that referenced this issue Feb 9, 2018
shiffman added a commit that referenced this issue Feb 9, 2018
adding circleci integration #41
@shiffman
Copy link
Member

shiffman commented Feb 9, 2018

As a matter of update CircleCI is now integrated with #50. We'll certainly want more tests but we're off and running! I'll leave this open for now but we can eventually transition to individual issues for tests.

@shiffman
Copy link
Member

shiffman commented Mar 1, 2018

We are considering switching from Jest to Karma. (And maybe from CircleCI to TravisCI?) Jest doesn't seem particularly well suited for browser libraries (but I could be wrong!). Deeplearn.js uses Karma and Travis so mirroring their workflow makes a lot of sense. (Big thanks to @dariusk for all of the thoughts and advice about this today!)

Tagging @nsthorat and @dsmilkov for any thoughts from their experience.

@nsthorat
Copy link
Contributor

nsthorat commented Mar 1, 2018

I don't know much about Jest, but Karma + Jasmine have worked great for us. Works great with travis + browserstack (if you want to run tests on real devices for free).

@hobg0blin
Copy link
Contributor

working on this one!

joeyklee pushed a commit that referenced this issue Jun 2, 2019
joeyklee pushed a commit that referenced this issue Jun 2, 2019
adding circleci integration #41
@bomanimc
Copy link
Member

Closing this issue, since we have tests and CI. That said, they can be a bit flaky (see #637). Let's continue discussion about how to improve this over there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants