Comments (8)
@writeline, @willduff I can create an initial test project and start adding tests for CoreServices, if you wish.
Any part of CoreServices you feel should be handled first?
from openlivewriter.
IMO, another important part that should be test against ASAP is BlogClient. People are eager to add new blog providers for OLW, but they have no idea how it works as lack of design spec. Test suite can help them understand.
There is no need to write tests for all blog client for now, just one sample for a specific provider ( eg, wordpress ). Then we can ask people to write their own when bringing new providers.
Personally, I'm looking forward to see what framework we'll use, Nunit, VS Test Framework or something else.
from openlivewriter.
Thanks for volunteering @MitchMilam. We already have an OpenLiveWriter.UnitTest.csproj, but it doesn't build or run yet. Please start by just getting that project to build with 1 dummy test that builds and runs.
Though, there is also the further question of what test runner should we use? Any suggestions?
Once we have the project building and running, we'll hook it up to our continuous integration server. Then we can add more tests.
@MitchMilam if you want to take this on, please reply back and I will assign the issue over to you for now. Thanks!
from openlivewriter.
@willduff No problem. Assign it to me. Yes, I saw that project and will take a look.
Let's stick with mstest since we know everyone will have that as part of VS.
from openlivewriter.
@willduff OpenLiveWriter.UnitTest is not a testing project, but a standard library project. That means we can't add unit tests to it.
Would you like me to create a new testing project?
PS. I had no trouble building it.
from openlivewriter.
@MitchMilam said...
@willduff OpenLiveWriter.UnitTest is not a testing project, but a standard library project. That means we can't add unit tests to it.
@MitchMilam that sounds like you are trying to use MSTest, which I believe needs a specific Project Type GUID in order to light up the Unit Test integration within Visual Studio. Other testing frameworks, like NUNit or XUnit do not have this requirement. Instead, they work with a standard class library project.
from openlivewriter.
Thanks @gep13, that is probably it.
@willduff just let me know which testing technology you want to use and I'll get it hooked up.
from openlivewriter.
As part of my WordCounter patch, I've added several tests to the OpenLiveWriter.UnitTest project. Currently I've used MSTest because it requires the least amount of 3rd party tool integration. Unlike the above, I've found there really isn't a problem using MSTest with the current Project type - I've just added a reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework and decorated my tests with the right attribute, and VS 2015 Community picked up on it and shows the tests in the test explorer.
It does seem, however, that the AppVeyor build doesn't actually execute them, which is a shame.
If we want to switch test frameworks, this would be a good time before more are added. If not, it would be a good time to add them to the build process. :)
from openlivewriter.
Related Issues (20)
- What happened?This project Stop Support? HOT 3
- Store version - use transparent tile
- Can I translate this app to new languages? HOT 1
- Linux Version of OLW HOT 1
- It is Working for me. try this setup file (Google App Blocked Error Fixed!) :ok_hand: HOT 1
- Blogger Eliminates Images HOT 1
- Hi, why is it blank when entering text? HOT 1
- Portability
- OpenLiveWriter website seems to have expired HOT 1
- Can't login to blogger HOT 2
- 2 Factor Authentication
- Stop using browser user-agent that is obviously fake
- Images not published on Blogger. Again! HOT 1
- Moving to the new .NET Foundation CLA service HOT 1
- No se puede escribir en la ventana de texto de publicación
- Google Blogger Blocked HOT 2
- Livewriter Blogger HOT 131
- Google Blogger image URL format needs updating HOT 8
- Where can I get help for a 403 error when trying to add my WordPress blog?
- Use OLW Independently - without Blogger/WordPress/etc?
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 openlivewriter.