Comments (5)
I am aware of benefits of unit testing. But there are many singletons in the project, and migrating to other solutions would require a lot of work. So, my opinion is that one should focus on implementing features/fixing bugs, rather than on making tests.
from sanandreasunity.
from sanandreasunity.
To tell you the truth, I have started working on this. The project is a promising one and fun, but also a big one. The code quality is gonna degrade without testing.
It also reveals code smells which translate to bugs and a lack of inner mechanics understanding by others.
from sanandreasunity.
The main problem with testing now is that all game objects and usual C# classes are interconnected via static singleton / functions. It is not practical (and maybe impossible sometimes) to test such code.
The first thing to do is to find a way to decouple dependencies in order to substitute them in tests. As long as Unity creates game objects this is a tricky business but there are ways I'm trying to do / researching now.
from sanandreasunity.
I wouldn't like to dissapoint you. But my opinion is that tests are not neccesary at this moment. We should focus on high priority stuff. Doing what you want requires changing core parts of the game, which can cause a lot of bugs.
from sanandreasunity.
Related Issues (20)
- Implement bikes
- Implement helicopters HOT 7
- Rename Project HOT 5
- whats the system requirment HOT 1
- Water physics
- Water rendering HOT 1
- Convert to "new" Unity input system HOT 1
- Cleanup code formatting & Style HOT 2
- Migrate to Animator
- This repository is over its data quota HOT 2
- Suggestion: Make dedicated server work more SA:MP-like HOT 1
- Failed to find Models HOT 1
- Physics peformance issue. HOT 11
- Utilities missing HOT 1
- Any chance of a UWP Release build for Xbox Dev Mode? HOT 5
- Is it possible to connect to SAMP servers? HOT 3
- Renderware upgrade? HOT 1
- Suspicious code fragments found by PVS-Studio HOT 1
- !°°¢gta laboar
- Error after start game 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 sanandreasunity.