Visual Studio integration for GoogleTest unit testing framework visualstudiogallery.msdn.…
πŸ‘︎ 18
πŸ’¬︎
πŸ‘€︎ u/markus_lindqvist
πŸ“…︎ Sep 12 2013
🚨︎ report
Unit Testing in Visual Studio Code

Hey folks! I'm facing a conundrum. I'm a self-taught full stack wannabe developer and after learning how to put together an application I want to delve into Unit Testing. However I use Visual Studio Code and there's very little material out there for beginners on Unit Testing using VSC. Pluralsight has none.

Could anyone give me some advice on what to do from here? It's looking like I'll have to learn using Visual Studio and then transition to VSC once I have a good grasp.

Thoughts?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/CappuccinoCodes
πŸ“…︎ Feb 19 2021
🚨︎ report
Customizing Project Level Templates in Visual Studio Unit Test Framework dotnet-tv.com/2012/03/12/…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/martinig
πŸ“…︎ Mar 12 2012
🚨︎ report
Can't get test to run on Visual Studio 2019 using Microsoft CppUnitTest Framework

I've a function std::vector<Token> tokenize(const std::string& s) that I want to unit test. The Token struct is defined as follows:

enum class Token_type { plus, minus, mult, div, number };

struct Token {
    Token_type type;
    double value;
}

I have set up CppUnitTest and can get toy tests such as 1 + 1 == 2 to run. But when I try to run a test on my tokenize function it gives me this error:

Error C2338: Test writer must define specialization of ToString<const Q& q> for your class class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > __cdecl Microsoft::VisualStudio::CppUnitTestFramework::ToString<class std::vector<struct Token,class std::allocator<struct Token> >>(const class std::vector<struct Token,class std::allocator<struct Token> > &).

My testing code is this:

#include <vector>
#include "pch.h"
#include "CppUnitTest.h"
#include "../calc-cli/token.hpp"

using namespace std;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace test_tokens {
	TEST_CLASS(test_tokenize) {
	public:
		TEST_METHOD(binary_operation_plus) {
			auto r = tokenize("1+2");
			vector<Token> s = {
				Token{ Token_type::number, 1.0 },
				Token{ Token_type::plus },
				Token{ Token_type::number, 2.0}
			};

			Assert::AreEqual(r, s);
		}
	};
}

What's causing the error and how can I fix this?

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/Horror_Owl2671
πŸ“…︎ Mar 20 2021
🚨︎ report
Live Unit Testing in Visual Studio 2019 youtube.com/watch?v=d_wel…
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/HassanRezkHabib
πŸ“…︎ Jun 10 2020
🚨︎ report
Live Unit Testing in Visual Studio 2019 youtube.com/watch?v=d_wel…
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/HassanRezkHabib
πŸ“…︎ Jun 10 2020
🚨︎ report
Live Unit Testing in Visual Studio 2019 youtube.com/watch?v=d_wel…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/HassanRezkHabib
πŸ“…︎ Jun 10 2020
🚨︎ report
C unit testing in Visual Studio?

I've gathered there's a bit of anti-Windows sentiment in the C community, so I understand if this question doesn't get much of a response. Visual Studio has a convenient runner for unit tests in C++ and C#. Is there a C testing framework with a Visual Studio runner? I'm currently writing my code in C in a separate project which the C++ unit test project references. It works, but it feels hacky to have to use cpp for testing. I'd really like this solution to be nothing but real C, including the unit tests.

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/darchangel
πŸ“…︎ May 22 2020
🚨︎ report
How to Run and Interpret Unit Tests with Visual Studio Test Explorer

Summary: Learn what Visual Studio Test Explorer is and leverage this handy feature to organize all of your test cases.

https://adamtheautomator.com/visual-studio-test-explorer/

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/adbertram
πŸ“…︎ May 12 2021
🚨︎ report
I am a developer of the new Live Unit Testing feature in Visual Studio 2017 looking for feedback or to answer questions you may have.

Hello, I am a developer on the Managed Languages team (Roslyn) at Microsoft (https://github.com/tannergooding). I am currently focused on the new Live Unit Testing feature available in Visual Studio 2017 RC and RC2 (you can read more about the feature here: https://blogs.msdn.microsoft.com/visualstudio/2016/11/18/live-unit-testing-visual-studio-2017-rc).

We are looking for feedback on the product (things you like or dislike, areas you feel need improvement, or features that you think are missing) and to answer any questions you may have.

As per usual: Any statements, views, or opinions stated in this post are those of the author and do not necessarily state or reflect those of Microsoft.

Edit I will attempt to log bugs for any of the feedback or suggestions I get here. However, this will not be a guarantee that any particular feature, request, or fix will be implemented.

πŸ‘︎ 122
πŸ’¬︎
πŸ‘€︎ u/tanner-gooding
πŸ“…︎ Dec 20 2016
🚨︎ report
C# 8.0 on visual studio 16.8.5 NET Framework 4.7.x

hi, im interested as how to get the 8.0 patterns to work with VS and NET Framework ?
most of the "how tos" I've found are covering the topic for NETCore and I'm a bit baffled.

thanks for the input

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/Lilith5th
πŸ“…︎ Apr 24 2021
🚨︎ report
Microsoft to Offer Live Unit Testing in Visual Studio 2017 infoq.com/news/2017/02/Li…
πŸ‘︎ 61
πŸ’¬︎
πŸ‘€︎ u/grauenwolf
πŸ“…︎ Feb 10 2017
🚨︎ report
Live Unit Testing in Visual Studio 2017 calvinallen.net/archive/2…
πŸ‘︎ 50
πŸ’¬︎
πŸ‘€︎ u/mgroves
πŸ“…︎ Dec 24 2017
🚨︎ report
Visual Studio Live Unit Testing: New to Visual Studio 2017 blog.couchbase.com/visual…
πŸ‘︎ 55
πŸ’¬︎
πŸ‘€︎ u/mgroves
πŸ“…︎ Mar 10 2017
🚨︎ report
Unit testing Visual Studio 2017

Hi,

I wanna start with unit testing. So far I donΒ΄t see a chance to make them the way it worked in 2015 and all the tutorials I found are with 2015. Do you have any solution for me, I am a beginner.

πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/MrSeeSharp
πŸ“…︎ Nov 24 2017
🚨︎ report
Another C++ unit testing framework without macros

Just sharing a C++ unit testing framework I wrote recently. Currently it requires C++17, but aim is to switch to C++20 when it becomes widely supported. It is in Alpha version right now.

Would be nice to hear thoughts/critics/any feedback about it.

https://github.com/cppfw/tst

πŸ‘︎ 11
πŸ’¬︎
πŸ‘€︎ u/igagis
πŸ“…︎ Apr 16 2021
🚨︎ report
Unit testing framework Qt 5

Developers using QML and Qt 5, what unit testing framework would you recommend in 2021 and why?

Cheers!

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/periappi
πŸ“…︎ May 03 2021
🚨︎ report
Visual Studio's Natvis Debugging Framework Tutorial cppstories.com/2021/natvi…
πŸ‘︎ 42
πŸ’¬︎
πŸ‘€︎ u/joebaf
πŸ“…︎ Jan 25 2021
🚨︎ report
Which python frameworks allow you to create GUIs using a user interface like Visual Studio and NetBeans?
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/aitonc
πŸ“…︎ Mar 31 2021
🚨︎ report
NUnit vs. XUnit vs. MSTest: Comparing Unit Testing Frameworks In C# lambdatest.com/blog/nunit…
πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/mishraabeer
πŸ“…︎ Mar 24 2021
🚨︎ report
EOSLIME - EOS Development Tool and Unit Testing Framework limechain.tech/blog/the-b…
πŸ‘︎ 21
πŸ’¬︎
πŸ‘€︎ u/GeorgeSpasov
πŸ“…︎ Mar 30 2021
🚨︎ report
F# Unit Testing Simplified – Expecto with Visual Studio Code prigrammer.com/?p=398
πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/priortd
πŸ“…︎ Jan 19 2017
🚨︎ report
What unit testing framework in 2021?

I bet a lot of you would immediately write "xUnit.net". But I wonder why is that. I need to choose a framework for a couple of c# project and would like to have the same framework in both. One of them is desktop app and the second ASP and I can't decide between NUnit and xUnit.net. I've heard the opinion that xUnit is the way to go, but why? I would appreciate agility of it, but is it worth it considering the lack of documentation? What do you guys think?

πŸ‘︎ 12
πŸ’¬︎
πŸ‘€︎ u/Americano95
πŸ“…︎ Mar 09 2021
🚨︎ report
How you can set up and organize your projects to work with unit testing in C# with NUnit and Visual Studio. csprogrammer.net/en/tutor…
πŸ‘︎ 16
πŸ’¬︎
πŸ‘€︎ u/CSProgrammer
πŸ“…︎ Nov 15 2013
🚨︎ report
Live Unit Testing in Visual Studio 2017 RC blogs.msdn.microsoft.com/…
πŸ‘︎ 8
πŸ’¬︎
πŸ‘€︎ u/cntx
πŸ“…︎ Nov 19 2016
🚨︎ report
Unit Testing AMD-style JavaScript in Visual Studio checkyourexposure.com/p/2…
πŸ‘︎ 17
πŸ’¬︎
πŸ‘€︎ u/cyex
πŸ“…︎ Aug 22 2014
🚨︎ report
[x/post] I am a developer of the new Live Unit Testing feature in Visual Studio 2017 looking for feedback or to answer questions you may have. reddit.com/r/csharp/comme…
πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/tanner-gooding
πŸ“…︎ Dec 20 2016
🚨︎ report
Free Tutorial - A Python project with coding framework and unit testing idownloadcoupon.com/coupo…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/CarlosSmithudemy
πŸ“…︎ Apr 16 2021
🚨︎ report
Unit Test - Code Coverage Analysis / Visualization without Visual Studio Enterprise

Hey everyone,

I am looking for an free for commercial use and/or open-source solution for visualizing / analyzing the code coverage of unit tests in a solution.

I know Visual Studio Enterprise edition brings that feature out of the box, but unfortunately we do not have Enterprise versions at work.

So is there something similar simple and easy to use you can recommend?

πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/Hummigbird1
πŸ“…︎ Nov 13 2020
🚨︎ report
Unit Testing in React with Jest and Enzyme Frameworks syncfusion.com/blogs/post…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/ArunITTech
πŸ“…︎ Apr 16 2021
🚨︎ report
Live Unit Testing in Visual Studio 2017 RC blogs.msdn.microsoft.com/…
πŸ‘︎ 6
πŸ’¬︎
πŸ‘€︎ u/cntx
πŸ“…︎ Nov 19 2016
🚨︎ report
Free Tutorial - A Python project with coding framework and unit testing idownloadcoupon.com/coupo…
πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/CarlosSmithudemy
πŸ“…︎ Apr 17 2021
🚨︎ report
[C#] [Visual Studios] How to do unit testing on these classes

https://gist.github.com/anonymous/4eb5a4d4ede71040a6f0

Hey guys, I've done some unit testing and sort of get the idea but can't figure out what I have to do to test these parts

many thanks

πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/woody4life237
πŸ“…︎ Jun 16 2015
🚨︎ report
F# Unit Testing Simplified – Expecto with Visual Studio Code prigrammer.com/?p=398
πŸ‘︎ 2
πŸ’¬︎
πŸ‘€︎ u/priortd
πŸ“…︎ Jan 19 2017
🚨︎ report
Visual Studio c++20 Modules testing: template function that hides implementation

Background:

I weas currently developing a game engine from base (Vulkan API, GLFW API, PhysX API...). As you can expect, those api aren't built with c++ in mind, so they uses a tons of #define. And some have many functions. So I need to make an interface for those APIs. Seeing the new c++ Modules feature, I decided to start converting it all into Modules. So, I first need to understand how modules works.

As with understanding other new features, I first googled it online. Turns out most of them refers to how the c++ module should be joined into the standard, not actually what the current implementation is. They not just differs, they are basically completely different from the current VS implementation. Since my IDE is Visual Studio, I want to know about the Visual Studio version of c++20 Modules. So while many of them is interesting, none of them actually tell you about how to use it right now.

I also have no idea what is working according to the standard. http://eel.is/c++draft does say something about Modules, but also lacks many details. So in the end, I did some testing myself and see how to start using the current implemented version.

Side note: If you want to see how you can start programming with Module, you can get the test/demo project in my gitHub: https://github.com/TomTheFurry/VisualStudioCppModulesTesting

Note that in below I am talking about how the VisualStudio implementation of c++ Module works, and it may be differing greatly from the standard. I have no idea what is in standard and what is not. It would be great if you can tell us actually.

Breakdown on reachablity of things when you import a module:

export module ModuleA;

//Now you are in a segment that's like the old header file.
//However, anything that you want to be able to use outside of this file
//will require the 'export' keyword. Anything not 'export'ed will not
//show up when you 'import' this module. This cases some interesting behavear.

export class IX;
//^^ As class IX is not defined anywhere in this file,
//only the declaration of the class is exported.

export class FX;
class FX {
  public:
    int v;
};
//^^ The entire definition of class FX is exported.

struct UX {
    int b;
};
//^^ UX not exported at all. What is the use of this you wonder? You'll see.

struct VX {
... keep reading on reddit ➑

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/TomTheFurry
πŸ“…︎ Apr 23 2021
🚨︎ report
Using Microsoft Code Digger and Pex to Automate Unit Testing in Visual Studio rionscode.wordpress.com/2…
πŸ‘︎ 15
πŸ’¬︎
πŸ‘€︎ u/rionmonster
πŸ“…︎ Apr 25 2013
🚨︎ report
[C++] Visual studio 2015 unit testing

Hi, I am totally new to unit testing. I am using visual studio enterprise 2015 and want to try out unit testing on a very simple console application but cant seem to figure it out or find any good information on google, youtube, ect...

At the moment I have created a managed unit test project alongside a console application project, ran tests with the default empty test and ran the test again after adding "Assert::Fail();" to which the test successfully returned a fail. I am now unsure how I can get the functions or even classes in the console application project, to show in the managed test project.

πŸ‘︎ 3
πŸ’¬︎
πŸ‘€︎ u/craig395
πŸ“…︎ Feb 12 2016
🚨︎ report
SQlite Database in Visual Studio 2019 | Entity Framework Core youtube.com/watch?v=MQNFj…
πŸ‘︎ 10
πŸ’¬︎
πŸ‘€︎ u/monsterboz
πŸ“…︎ Jan 30 2021
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.