canopy
NUnit
Our great sponsors
canopy | NUnit | |
---|---|---|
13 | 26 | |
830 | 2,445 | |
16.6% | 2.4% | |
9.8 | 9.2 | |
1 day ago | about 20 hours ago | |
Python | C# | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
canopy
-
How to choose the right type of database
Pinecone: A scalable vector database service that facilitates efficient similarity search in high-dimensional spaces. Ideal for building real-time applications in AI, such as personalized recommendation engines and content-based retrieval systems.
- Show HN: R2R – Open-source framework for production-grade RAG
-
Using Stripe Docs in your RAG pipeline with LlamaIndex
In this post we’ll build a Python script that uses StripeDocs Reader, a loader on LlamaIndex, that creates vector embeddings of Stripe's documentation in Pinecone. This allows a user to ask questions about Stripe Docs to an LLM, in this case OpenAI, and receive a generated response.
-
7 Vector Databases Every Developer Should Know!
Pinecone is a managed vector database service that simplifies the process of building and scaling vector search applications. It offers a simple API for embedding vector search into applications, providing accurate, scalable similarity search with minimal setup and maintenance.
-
How Modern SQL Databases Are Changing Web Development - #4 Into the AI Era
A RAG implementation's quality and performance highly depend on the similarity-based search of embeddings. The challenge arises from the fact that embeddings are usually high-dimensional vectors, and the knowledge base may have many documents. It's not surprising that the popularity of LLM catalyzed the development of specialized vector databases like Pinecone and Weaviate. However, SQL databases are also evolving to meet the new challenge.
- FLaNK Stack Weekly 11 Dec 2023
-
Embracing Modern Python for Web Development
In the dynamic world of web development, Python has emerged as a dominant force, especially in backend development – the primary focus of this blog post. Although it's worth mentioning that there are ongoing efforts to use Python for the frontend as well, like Reflex (previously known as Pynecone, they presumably had to change their name because of Pinecone vector database), which even garnered support from Y Combinator. Samuel Colvin (creator of Pydantic) is also working on FastUI (he literally just released the first version in December 2023).
- Canopy is an open-source Retrieval Augmented Generation (RAG) framework
-
Enhance your Website with AI: Embed a GPT-ChatBot with Flowise
Also, sign up at Pinecone, create a new Chat Application project, and set up a new index (for instance, yogarkana).
NUnit
-
CI/CD Pipeline Using GitHub Actions: Automate Software Delivery
.NET / xUnit / NUnit / MSTest
-
Fluent Assertions: Fluently Assert the Result of .NET Tests
This library extends the traditional assertions provided by frameworks like MSTest, NUnit, or XUnit by offering a more extensive set of extension methods. Fluent Assertions supports a wide range of types like collections, strings, and objects and even allows for more advanced assertions like throwing exceptions.
-
TDD vs BDD - A Detailed Guide
Next, you need to install a testing framework that will be used for performing unit testing in your project. Several testing frameworks are available depending on the programming language used to create an application. For example, JUnit is commonly used for Java apps, pytest for Python apps, NUnit for .NET apps, Jest for JavaScript apps, and so on. We’ll use the Jest framework for this tutorial since we are using JavaScript.
-
Setting up a simple testing project with C#
At this point you're going to see a familiar screen asking you to select a project. Here we're looking for a test project. By default, Visual Studio gives you access to 3 different testing frameworks based on your choice of project. These are MSTest, XUnit and NUnit. Ultimately, all 3 of these testing accomplish the same thing, and I've worked with all of them at various points in my career. The difference is mainly in exact syntax and documentation. Although, it's generally considered that MSTest is a little "older" than NUnit or XUnit, so I tend to see it less now. For the purposes of this demo, I'm going to go with NUnit:
-
Test-Driven Development
Use a testing framework: Utilize a testing framework like NUnit, xUnit, or MSTest to create, organize, and run your tests. These frameworks provide a consistent way to write tests, generate test reports, and integrate with continuous integration tools.
-
Debugging extension for test library
So I wrote extension attribute for Nunit, the opposite of how the retry attribute works.
- 2023 Development Tool Map
-
Unlock the Power of Unit Testing: A Beginner’s Guide to Quality Software Development
**NUnit**
This is a basic example of how to create an NUnit unit test for a simple API in a controller with C#. You can find more information and resources on the NUnit website and in the NUnit documentation.
-
Creating Your Own Custom Attributes in C# and Retrieving Their Values
I was trying to think of an example of where C# attributes might be used in every day life and then it dawned on me: unit testing! If you have ever used a unit test framework such as MSTest, NUnit or xUnit, you will have used attributes in C# to define the classes and methods that you would like the test framework to execute. This is just one example of how you can use attributes to assign metadata to elements of your code.
What are some alternatives?
Fluent Assertions - A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.
NSubstitute - A friendly substitute for .NET mocking libraries.
xUnit - xUnit.net is a free, open source, community-focused unit testing tool for .NET.
Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]
Shouldly - Should testing for .NET—the way assertions should be!
coverlet - Cross platform code coverage for .NET [Moved to: https://github.com/coverlet-coverage/coverlet]
dotnet-testcontainers - 🐋 A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. [Moved to: https://github.com/testcontainers/testcontainers-dotnet]
Machine.Specifications - Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
Bogus - :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
FakeItEasy - The easy mocking library for .NET
Fine Code Coverage - Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)
testcontainers-dotnet - A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.