-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit-testing framework (.Net) #27
Comments
I might up that to NUnit 3 - Adopt. Is NUnit 2 Endure or Retire? (It has breaking changes.) JavaScript and, more also specifically, React testing is definitely an area we haven't pinned down. |
We've been using jest for general js testing, which appears to work just fine. We've successfully written some React component tests with jest and enzyme but haven't found them particularly useful beyond a proof of concept |
+1 to splitting these out. I think Endure is probably appropriate for NUnit 2 - as far as I know there's nothing wrong with using 2, but you might as well use 3 for any new development. AFAIK CompareEngine migrated to 3 for the new parallel execution features, but apart from that it'd happily been using 2 for many years. |
Does Pester count as a testing framework for .NET? It's for PowerShell! 😁 |
For the C# stuff, it feels like we're pretty close to consensus? Adopt:
Retire
For xUnit/Fixie - what benefit could these packages give us? Is there anything significant enough to warrant putting them in Explore? From a quick look, they looked different (maybe more customisation)? I'm worried about the knock-on impacts (e.g. it'd need to work with TeamCity test runners, the build system, NCrunch and more). Is this one where we should just keep it simple? What'd you think @adrianbanks? |
I don't think actively retiring NUnit 2 simplifies our build/test system - we tend to encourage people to manage their own testing dependencies for exactly this kind of reason, so I think Endure is probably most appropriate.
As far as I know xUnit tends to be supported everywhere NUnit is (eg in NCrunch/R#/teamcity/etc at least) - I don't know of any really compelling reason to switch away from NUnit though. I hadn't heard of Fixie until this issue - looks like it can output nunit-style xml reports, so it'll at least work with the build system. Other tools might be a bit trickier, though. |
Just remembered we've been using some custom assertion libraries like
Personally I like |
@fffej I only mentioned xUnit and Fixie as they were testing libraries we could also choose. I've used them a bit in my own things are they are more flexible than NUnit, but I don't think we should include them unless they are already in use within Redgate. |
Sounds like we've got consensus on Adopt
Endure
Does anyone fancy making a PR on this and I'll merge it? (I'm trying to avoid being always me that creates PR's 😄) |
@Greg-Smulko Weren't you guys using a BDD style test framework? |
@allymparker, not really.
|
We use a single one in Prompt:
The text was updated successfully, but these errors were encountered: