Git Product home page Git Product logo

Comments (3)

ncla avatar ncla commented on July 18, 2024

Some input from someone experienced with this would be nice.

from loungedestroyer.

JakeHP avatar JakeHP commented on July 18, 2024

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.

ncla avatar ncla commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.