Comments (5)
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.
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.
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.
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.
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)
- Better support for repository depth
- Php compatability HOT 1
- Gave up on installing this... HOT 3
- Search for repository in subdirectories HOT 1
- Uncaught Error: Cannot assign string to property Symfony\Component\HttpKernel\Debug\FileLinkFormatter::$fileLinkFormat of type array|false HOT 2
- 404 on all assets HOT 11
- Hello, I use Gitlist 1.1.1 and I want to know if I respect the BSD-2-Clause HOT 2
- git clone over https does not work
- Support needed on installing HOT 3
- git_path from config.yml not used
- Can't create development environment HOT 1
- Can't list repositories HOT 2
- PHP 8.2 => 500 Internal Server Error, setLastErrors must be of type array, bool given HOT 2
- default_repository_dir from config.yml don't work HOT 2
- public/.htaccess is missing HOT 2
- automacao
- Openening a file containing the name of a branch or tag throws a CommandException
- Display Issue and Content Not Found Problem HOT 1
- Problem when adding gits
- pump_local_HMI_X2_V3.0.git HOT 1
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 gitlist.