GithubHelp home page GithubHelp logo

Comments (5)

DannyvdSluijs avatar DannyvdSluijs commented on July 16, 2024

I'm working on the unit test, already at a 52,78% LoC coverage. @klaussilveira, I send you an e-mail regarding the unit test.

from gitlist.

klaussilveira avatar klaussilveira commented on July 16, 2024

Are you working with unit or functional tests? Maybe both? The current test suite in GitList has functional tests for the interface only.

from gitlist.

DannyvdSluijs avatar DannyvdSluijs commented on July 16, 2024

Both unit, as functional. As the majority can be tested with unit, the controllers require functional. I already splitted up the InterfaceTest file, to their proper test files
src/GitList/Controller/MainController.php => test/src/GitList/Controller/MainControllerTest.php
etc.

I just need to work out as that created some duplicate code, to setup the two initial repositories, I'll ponder my brain over that during this week.Hopefully I'll be able to request a pull early next week. Due to some social items in my agenda :-)

from gitlist.

DannyvdSluijs avatar DannyvdSluijs commented on July 16, 2024

Come to think of it, creating a single method for the setting up the repositories would couple the tests together, so I am actually thinking of leaving each separate controller test with its own setupBeforeClass and tearDownAfterClass methods.

Any feedback on this ?

from gitlist.

klaussilveira avatar klaussilveira commented on July 16, 2024

I don't see a problem with this approach. You can also create a fixture file and load it, if the setupBeforeClass() method get's too repetitive.

from gitlist.

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.