We are trying to port integration tests that are using NUnit to NUnitLite provided with Xamarin. Some of the tests should run in a particular order. However it looks like there no OrderAttribute or any dependency attribute present in NUnitLite.
Are there any approach for running tests in an order on iOS and Android?
NUnit 2.6.4 and 3.0 runs tests in alphabetical order. Since the Xamarin NUnitLite code is a fork, it may behave the same.
Another option is to use NUnit 3's Xamarin runner. NUnit 3.2 added an Order attribute and I will be updating the Xamarin runner to use 3.2 shortly. For more information on using the Xamarin runner and NUnit, see Testing Xamarin Projects using NUnit 3
Related
Info of my tools & version set up are below
SpecFlow Version: 2.3
Used Test Runner: NUnit
Version number: NUnit.ConsoleRunner v3.8.0; NUnit v3.10.1
Visual Studio Version: VS 2015
Are the latest Visual Studio updates installed? Yes
.NET Framework: >= .NET 4
Test Execution Method: Visual Studio Test Explorer TFS/VSTS
Issue Description:
On a project that I have been working on for more than 2 years now using SpecFlow automation, I recently discovered that the AfterTestRun method is not working; and it's not been working since May 2017. As I can see the clean up activities were executed in the results from that time; but have not been executing since then. At that time, we were using an earlier SpecFlow version but I am not sure which. However the issue is that BeforeTestRun and all other Hooks methods (BeforeFeature, BeforeScenario, BeforeStep, AfterStep, AfterScenario and AfterFeature) are working perfectly. Just the AfterTestRun method does not get executed at all. The final result compilation completes successfully but no traces of AfterTestRun having been executed.
I have searched through all relevant posts on the forum but have not been able to get any headway. i even installed SpecFlow.Nunit and SpecFlow.Nunit.Runner to see if that may be the issue (per one of the posts - but that too did not resolve the issue)
I have decided to choose Rspec/Capybara over Robot Framework for integration tests in Rails based App.
Previously, Robot Framework was used for integration testing in the project I am working on. As I now joined the team so I am trying to change it to Rspec-based integration testing using Capybara but I have to convince the top management that Rspec and Capybara is better option for Rails based application.
So basically I need a comparison table between these two frameworks which will tell that Rspec is better option than Python Robot Framework (if it is a better option).
After lot of research I was able to compile following comparison table between Rspec/Capybara vs Robot Framework
I am answering this question in case somebody else need it.
I am trying to create functional tests in grails. I have integration and unit tests. But i am unable to create functional tests directory. I am using grails 2.4.5 version
Grails 2 does not ship with functional testing capabilities. Noted in the documentation here. Using a plugin for functional testing is the recommended practice.
Grails does not ship with any support for writing functional tests
directly, but there are several plugins available for this.
Canoo Webtest - http://grails.org/plugin/webtest
G-Func - http://grails.org/plugin/functional-test
Geb - http://grails.org/plugin/geb
Selenium-RC - http://grails.org/plugin/selenium-rc
WebDriver -http://grails.org/plugin/webdriver
Consult the documentation for each plugin for its capabilities.
Grails 3 does ship with the ability to create functional testing using the Geb framework as documented here:
Grails by default ships with support for writing functional tests
using the Geb framework. To create a functional test you can use the
create-functional-test command which will create a new functional
test
I need to know is it possible to perform integration testing using selenium for ASP.NET MVC applications. If yes then What are the requirements and how to do it. Will it be an external application to test from UI or should I be using views. Really confused. Please guide
If you are planning to write the Selenium tests using C#, which I'd recommend over using any kind of test recorder, then this will be a separate project.
You will run this and it will test a deployed version of your application, ideally in a dedicated test environment. There is extensive documentation available.
Personally I and others prefer WatiN for testing web applications using C# written tests.
Selenium can be used for testing any web applications include ASP.NET MVC. In general, you add test project to solution and write tests in it. Selenium open browser and execute commands that is described in your test. You can write test in c# or can use recorder and save record as c# test.
I am working on an Asp.net mvc3 project (.NET 4). And required to integrate a testing tool. I tried to setup up the Nunit testing framework in my solution but it seems that there is a problem setting it up in vs2010.
now I want to know if Nunit still works in vs2010 or
Arent there a clear testing tools for vs2010.?
tnx!
Yes, VS works only with MSTest framework. But you can use some external test-runner:
TestDriven.Net
CodeRush
ReSharper
Another option - go to NUnit GUI settings and turn on test re-running when test assembly changes. Actually I like big green bar, so I have NUnit GUI opened on separate monitor. When test assembly re-builded, all latest tests executed automatically. If I want to debug some test, I use CodeRush - match better than attaching debugger to NUnit.
NUnit has a separate test runner program. I believe the workflow with NUnit is that you code the tests in VS, but you have to run them using the separate NUnit test running program. MSTest is the only unit test framework I know of that lets you run tests from directly within VS.
However, there is a VS plugin called ReSharper. Installing that gives you an NUnit test runner within VS.
Update
Also anyone can correct me if I'm wrong here, but I believe you only get the MSTest runner with versions of VS Professional and up. I don't think VS Express comes with a built-in MsTest runner.
There's Visual Nunit that'll let you run tests from within visual studio.
There's also NCrunch, still in beta but pretty cool. From their website:
NCrunch is an automated parallel continuous testing tool for Visual Studio .NET. It intelligently takes responsibility for running automated tests so that you don't have to, and it gives you a huge amount of useful information about your tests (such as code coverage and performance metrics) inline in your IDE while you work.