Testing framework for Win10 / UWP / C#?
-
Okay, I want to do a little bit more than "mere" unit tests, I'd also like some kind of functional/integration/UI tests.
However, my searches didn't yield too many results. So, does anyone perchance know of something that allows other tests besides unit tests for UWP apps using C# + XAML?
Bonus if it isn't too expensive (or maybe even free), a $1,000 pricetag would be a bit steep for me.
-
@Rhywden We just use the standard test runner stuff for integration tests-- you can put any code you want in a test, there's no law saying it has to be a unit test. Plus our build/CI systems already understand it.
-
@blakeyrat said in Testing framework for Win10 / UWP / C#?:
@Rhywden We just use the standard test runner stuff for integration tests-- you can put any code you want in a test, there's no law saying it has to be a unit test. Plus our build/CI systems already understand it.
Yeah, but there's a little snag when it comes to UWP - when you're running the test runner for those, you end up with a blank UI while the tests are running.
-
@Rhywden So? If the tests are ones that you're automating, who is going to look at the UI while it is running? (UI tests are often awful to look at as they pop up and destroy windows rapidly.)
-
@dkf said in Testing framework for Win10 / UWP / C#?:
@Rhywden So? If the tests are ones that you're automating, who is going to look at the UI while it is running? (UI tests are often awful to look at as they pop up and destroy windows rapidly.)
The problem is that you have no way of accessing the app's UI. At least not that I have seen.
-
@Rhywden said in Testing framework for Win10 / UWP / C#?:
The problem is that you have no way of accessing the app's UI. At least not that I have seen.
Because it isn't servicing the event loop? Depending on how the testing is done, that's not necessarily a problem. (It might just be ignoring
WM_PAINT
messages…)
-
@dkf said in Testing framework for Win10 / UWP / C#?:
@Rhywden said in Testing framework for Win10 / UWP / C#?:
The problem is that you have no way of accessing the app's UI. At least not that I have seen.
Because it isn't servicing the event loop? Depending on how the testing is done, that's not necessarily a problem. (It might just be ignoring
WM_PAINT
messages…)No, the entry point is completely different. The app's UI never gets constructed in the first place when running tests.
-
Aaaaand... the problem solved itself.
Seems that with the latest VS update in April, they added some new features. And because I didn't completely read the release notes and also didn't use the "New Project" button (or similar) since then, I completely failed to notice this:
Now I just have to work out how to use that in practice.
-
@Rhywden Aaaaand of course that's something only available to VS Enterprise.
Fuckers.
Not that they're telling you this. No, you get an obscure error message which doesn't help you much.
-
@Rhywden said in Testing framework for Win10 / UWP / C#? (solved):
@Rhywden Aaaaand of course that's something only available to VS Enterprise.
Fuckers.
Not that they're telling you this. No, you get an obscure error message which doesn't help you much.
Might want to unmark this "(solved)" then.
-
@Dreikin Indeed.
-
@Dreikin said in Testing framework for Win10 / UWP / C#?:
Might want to unmark this "(solved)" then.
So, it's “solved” as opposed to solved?
-
@dkf Considering that I voted "nay" on the idea of a $1000 price tag and with VS Enterprise being even more expensive than that, pretty much, yeah.
-
@Rhywden And any time you try to find a solution that isn't out of your budget, you'll just get asses telling you to get your employer to pay that $1000 and what's the big deal. Feel free to rage on about it.
-
@dkf said in Testing framework for Win10 / UWP / C#?:
get your employer to pay that $1000
If your employer is a public school in Germany, good luck with that!
-
@asdf said in Testing framework for Win10 / UWP / C#?:
@dkf said in Testing framework for Win10 / UWP / C#?:
get your employer to pay that $1000
If your employer is a public school in Germany, good luck with that!
Also, it's for a private project :)
-
@Rhywden said in Testing framework for Win10 / UWP / C#?:
it's for a private project
So your employer is you. Why are you being so stingy?
-
@Jaloopa Well, would you gift me $2500 per month?
-
@Rhywden Zimbabwe dollars?
-
@Jaloopa said in Testing framework for Win10 / UWP / C#?:
@Rhywden Zimbabwe dollars?
I fear that's not the currency Microsoft is willing to accept. And, no, I'm not moving to Zimbabwe.
-
@Jaloopa said in Testing framework for Win10 / UWP / C#?:
@Rhywden Zimbabwe dollars?
Not sure they make notes that small.
-
@Rhywden Don't know where you're getting your numbers.
It's $2500 annually, not monthly.
-
@Magus said in Testing framework for Win10 / UWP / C#?:
@Rhywden Don't know where you're getting your numbers.
It's $2500 annually, not monthly.
Well, we're both wrong. It's $250 monthly or $2999 annually :)
-
@Rhywden No, only one of us, unless you consider $69 meaningful at this price point:
The extra $500 only gets you ???
-
@Magus And the first year's price is what again?
-
@Rhywden said in Testing framework for Win10 / UWP / C#?:
@Magus And the first year's price is what again?
Noticeably better each subsequent year.
-
@Magus I'm not so sure. On the German site the price you listed has a slightly ominous "per year" tacked on to it.
-
@Rhywden right, so the first year of getting perpetual licenses for all of Microsoft's software is expensive with this selection, but the annual cost is lower. You'd need a few years for it to even out, so it would be a long term decision, but cheaper if you do keep renewing it than the cloud subscription would be.
-
@Rhywden 5.999 dollars? That's pretty cheap. Better order quick before they work it out.
-
@blakeyrat If you decide not to buy and then click on the X in the browser's tab do they charge you anyways?
-
@blakeyrat That's locale-ist.