Comments (8)
Jasmine looks good, I'll take a look at it
from rmc.
I believe @phleet likes http://visionmedia.github.io/mocha/. Any thoughts, Jamie?
from rmc.
Currently favored setup:
- Mocha for test runner, using the BDD syntax.
- chaijs for assertions, using the
expect()
syntax. - sinonjs for mocking (though I need to use this very infrequently, and when I do it's usually to mock ajax requests)
The hard thing for JavaScript testing is keeping the test in good working order. This is facilitated in our python codebase by making make test
a deploy blocker (you cannot deploy if the tests are failing). It turns out that making client-side JavaScript tests report back to the console with their success or failure is a huge pain (this was what I spent 2 months at two different companies doing). Thankfully we already have a module system (RequireJS) which makes part of this challenge go away.
The most consistently applied tool I've seen for this is Karma, though I haven't used it much personally. I ended up using either PhantomJS or backgrounded Google Chrome windows in the past for doing this kind of thing, and rolling my own system to support it.
from rmc.
So if I'm correct right now we're looking to test the transcript and schedule parsers. I'll check out Mocha and chaijs, as well as the current parser for transcripts and see if I can come up with some tests we can run.
Is there any other Javascript code we should be testing aside from the parser?
from rmc.
Tons, but don't worry about that for now :)
from rmc.
Haha sounds good, looks like getting the tests for this will take me a little bit anyway, especially given the 3 exams in 3 days I have starting tomorrow
from rmc.
Oh man. Good luck on the exams!
from rmc.
from rmc.
Related Issues (20)
- Search by time slot
- Exclude antireq/advanced version
- Exam info showing imported from the "Spring 2014 Final Examination Schedule" HOT 1
- ssl certificate does not contain www.uwflow.com
- Search Function no longer works HOT 2
- Reimporting from quest doesn't delete old calendar events. HOT 2
- where do all the cat photos come from? HOT 1
- SSL cert expired HOT 2
- Site is down
- Information not updated for months on the site HOT 4
- Feature Request: filter courses by time :)
- iCal export broken HOT 3
- Export to Google Calendar comes out blank HOT 7
- Program should be pulled from most recent term HOT 2
- Ideas
- Exporting calendar as ICS or CVS files
- Searchbar Text Cut off on Mobile HOT 1
- Show reserved seats in sections and allow user to receive notifications for a reserved or a non-reserved spot.
- Cannot access uwflow.com HOT 9
- Search without having to focus on the search bar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmc.