haydenwade / Plateo

A web app that brings on conversation by connecting others via license plate numbers
http://bit.ly/2duQKj8
1 stars 4 forks source link

Help setting up Karma, Jasmine, Travis MEAN Stack #22

Open haydenwade opened 8 years ago

haydenwade commented 8 years ago

Questions/issues:

  1. Is my karma.conf.js setup correctly?
  2. Travis CI build is failing (is my travis.yml setup correctly?)
  3. Not sure how to handle the calls to mongoDB -> assume I will have to mock this out in my tests or setup Travis to run build on my development server; Any thoughts on this?

Background info: I just started to add tests to my project. My plan is to have e2e tests and unit tests for the api; unit tests for the UI.

Here is what I have done so far: Added Karma and Jasmine Created karma.conf.js Created .travis.yml Created tests directory to hold both api and ui tests. Added one test to ping api

Project Directory structure: server.js - api app/ - middlewares and routes for api public/ - UI using AngularJS tests/ - directory to hold all tests tests/api - where my e2e tests for api will go tests/ui - where my unit tests for the ui will go

Please work off of the AATests branch and make all PR to that branch, thanks!

haydenwade commented 8 years ago

Looks like I can only use Firefox with travis. See this forum

sarbbottam commented 8 years ago

I guess you want Protractor with SauceLabs instead of Karma.

haydenwade commented 8 years ago

@sarbbottam if i wanted to do e2e testing on my UI (angular) then I think I would use Protractor. As of now I am just interested in having moderate testing. I have used Karma and Protractor both on other projects but never have been the one to set them up or add to a project I built from scratch.