Document your code
Every project on GitHub comes with a version-controlled wiki to give your documentation the high level of care it deserves. It’s easy to create well-maintained, Markdown or rich text documentation alongside your code.
Hi Satoshi, I believe I am also facing the same problem i.e. Want to run tests on macOS that uses Xamarin.Mac. Would it possible to share the steps of how you built NUnit. Extension for Visual Studio - NUnit 2 adapter for running tests in Visual Studio 2012 and newer. Works with NUnit 2.x, for 3.x tests use the NUnit 3 adapter. The easiest way to get started is to install the NUnit Templates extension for Visual Studio.It will add project templates for the various Xamarin platforms. For more general information, see Testing Xamarin Projects using NUnit 3. Getting started. I understand that VS for Mac is a totally different beast to VS in windows, but im struggling to run my NUnit Web Driver tests within the mac version. We recently developed both iOS and Android Apps for our company, so purchaced a Mac for dev and testing purposes.
Visual studio for mac sunilkp reported Apr 16 at 02:51 PM I am not able to see my test methods [nunit test methods defined with [Test] attribute] under View > Pads > Unit Tests pane.
Sign up for free See pricing for teams and enterprises The easiest way to get started is to install the NUnit Templates extension for Visual Studio. It will add project templates for the various Xamarin platforms.
For more general information, see Testing Xamarin Projects using NUnit 3.
Getting started
In your solution;
- Add new test projects to your solution. These project types are included in the NUnit Templates Extension
- NUnit 3 Test Project (Android)
- NUnit 3 Test Project (iOS)
- NUnit 3 Test Project (Universal Windows)
- Write your unit tests in this project, in a portable project, or in a shared project, referencing the project with the tests.
- Build and run the tests on your device or emulator
If you tests are in a separate portable project, note that:
- You need to add that assembly to the
NUnit.Runner.App
in the startup code
- Your portable project must reference the same NUnit Framework version as your nunit.xamarin version, e.g. if using nunit.xamarin 3.01, reference nunit.framework 3.01.
The startup code for each platform is as follows;
Android
MainActivity.cs
iOS
Nunit Visual Studio For Mac
AppDelegate.cs
Windows 10 Universal
MainPage.xaml
MainPage.xaml.cs
App.xaml.cs
Visual Studio For Mac
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
Clone this wiki locally
Please complete the security check to access this website.
Why do I have to complete a CAPTCHA?
Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.
What can I do to prevent this?
If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.
If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.