Giter Site home page Giter Site logo

Unit tests about project-phoenix HOT 4 CLOSED

gordon-cs avatar gordon-cs commented on July 19, 2024
Unit tests

from project-phoenix.

Comments (4)

superpowers11 avatar superpowers11 commented on July 19, 2024 1

The naming convention I opted for was MethodBeingTested_Input_ExpectedBehavior. (E.g. IsValidUser_InvalidPassword_ReturnFalse)
It seemed the most concise, informative option.
If you all have different preferences, I am open to them, but I figure we should be consistent across all unit tests.

from project-phoenix.

superpowers11 avatar superpowers11 commented on July 19, 2024 1

I'm finished 7 tests, but I tried to leave some options for you guys as well since we all have to write 5-10 for Monday.

  • GetRoom in LoginService may need more tests
  • GetBuilding in LoginService still needs all tests
  • GetRoom in LoginService still needs all tests
  • ToUnixTime is sort of a random utility, that could be tested if we want, but seems kind of unnecessary
  • Once we have segmented HomeController's body code into a service, it will be easier to unit test as well

from project-phoenix.

eanyanwu avatar eanyanwu commented on July 19, 2024

Thanks steph! I'll try to write some exhaustive unit tests today then.

from project-phoenix.

eanyanwu avatar eanyanwu commented on July 19, 2024

I have written about seven unit tests as well....six of which fail...i mean succeed? I haven't made them pass yet, as I think we can do that in another branch. That is just to keep all the changes in the Unit-test branch limited to Phoenix.Tests.

from project-phoenix.

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.