UWP tests don't work
Opened this issue · 6 comments
Hi there!
It seems that NUnit doesn't support UWP tests.
Do you mind if I change UWP tests from NUnit to MS test?
It will require some conditional variables for every test. Something like this:
#ifdef UWP [TestMethod] #else [Test] #endif
Or am I wrong and UWP tests actually work well?
May be any other ideas.
Sorry for the long answer. Yes, feel free to do it
I just tried the tests without any modification, they fail, well, they are left pending. Hope you'll be able to fix it.
And by the way, you can convert those Action func = () => { ... }
to a local function
EDIT:
Actually, it was on Release configuration. It fails
DEP3000: Attempts to stop the application failed. This may cause the deployment to fail. [0x92330047] HRESULT: 0x92330047 PCLExt.FileStorage.UWP.Test
Ok, I'll check it asap. I believe it will be this week. As far as I remember they worked well.
Hi again @Aragas.
- I took the latest version from the master branch (my merge commit):
- Run all the tests & they work well screenshot.
The issue may be if you launch tests in configuration "Any CPU". You need to select configuration x86 or x64 for running UWP tests because a UWP project can't be platform independent & should be compiled into native instructions. Prove.
@ArtjomP well, I'm not sure on the issue
I just need to select the UWP platform and it should work, no additional components to install?
It's on my side, because your fork doesn't work either
It's this issue https://developercommunity.visualstudio.com/content/problem/249594/cant-run-unit-universal-unit-test.html
Anyway, the tests work, so everything should be fine. After you'll check those issues and give a green light, I'll release 1.4.1 with UWP