Comments (3)
Some input from someone experienced with this would be nice.
from loungedestroyer.
I'll dig into this once I finish up the site and logo. Unit testing is going to be difficult since, from what I've seen at least, most of the functionality is actually completely coupled with the user interface. There aren't many functions that simply manipulate data, or do some basic functionality that fits unit testing. Correct me if I'm wrong.
That being said, ui tests that interact with the csgolounge interface will do the job. I'd vote on http://webdriver.io/ for UI bindings/actions and mocha for testing framework (that provides assertions etcetc).
from loungedestroyer.
Wrote my first few tests for Items class, only took 7 months to finally get started. :D
Not finished yet, there needs to be some refactoring done, for example fetchSteamMarketPrice
does not have any callbacks therefor I cannot really test it, yet.
To install it just npm install mocha
and npm install chai
, then you just open tests.html
in the browser and it should run the tests.
from loungedestroyer.
Related Issues (20)
- Trade info filtering box is bugged on home page
- Max bet total should be limited to items that are <= 75 value HOT 1
- Tab focus/creating for options page is broken thanks to a Chromium 49 bug
- Dota prices inaccurate if not base-quality HOT 3
- 'Bellow' typo in update notification
- Remove stream option? HOT 2
- Decrease the amount of notifications
- Use 3rd party Steam market API
- [Request] Button to scroll down the page to bets HOT 3
- Wear status disappears on hover in search HOT 1
- GlassLounge theme: some objects overlap HOT 1
- CleanLounge Night theme: Make trades more distinguishable from each other HOT 1
- Redundant entry: "Show Steam market price" HOT 3
- Retest the 'open new tab if not exist' API bug HOT 1
- Suggestion: When click open to steamanalyst of that object HOT 1
- Inventory loading should clear setTimeout when cancelling it
- Extended match information is broken due to new coin update
- Auto-bump not working due to incorrect redirect to HTTPS HOT 6
- New bug auto bump csgolounge HOT 2
- New error for auto bump dota2lounge/csgolounge HOT 2
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 loungedestroyer.