Skip to content

Commit

Permalink
Refactor initial slides
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsograziano committed Feb 8, 2024
1 parent d53415f commit e5c2edc
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,41 @@ Test runners can be part of a larger **test framework** or standalone tools.

# Poplular examples

Popular examples include `pytest` for Python, `JUnit` for Java, `Mocha` for JavaScript, and `NUnit` for .NET.
<div class="dense">

- Test runners are tools designed to execute your test suites and report the results. They are essential in automating the testing process.
- Python: `pytest` is widely appreciated for its powerful features and simple syntax, making it suitable for both simple and complex projects.
- Java: `JUnit` is the de facto standard for unit testing in Java development, known for its rich annotation-based configuration.
- JavaScript: `Mocha` is a flexible test framework with a focus on asynchronous testing, offering rich features for running tests in Node.js and the browser.
- .NET: `NUnit` is a popular choice for .NET developers, similar to JUnit but with a focus on the .NET framework.
</div>

Choosing the right test runner depends on the programming language, the complexity of the project, and specific project requirements.
Choosing the right test runner involves considering the programming language, project complexity, and specific requirements.

---

# Test runner VS Testing Framework

---
<div class="dense">

# Why are there so many test runners?
- Test Runner: A tool that executes tests and reports the results. It is responsible for loading your test code, running it, and then providing feedback.
- Testing Framework: Provides the structure and guidelines for writing tests. It includes assertions, test cases, and test suites, but doesn't run tests by itself.
- The main difference lies in their roles; while a testing framework defines how to write tests, a test runner actually executes them.
- Some tools, like `pytest` and `Mocha`, combine both functionalities, acting as both test runners and frameworks.
</div>

---

# Why Node.js decided to ship its own test runner?

<div class="dense">

- Integration: Built-in support for testing within the Node.js ecosystem simplifies setup and configuration for developers.
- Standardization: Aims to provide a standard testing solution that leverages Node.js features and best practices.
- Performance: Optimized for the Node.js environment, it can offer better performance and efficiency for JavaScript projects.
- Features: Tailored to meet the specific needs of Node.js developers, incorporating feedback and evolving with the platform.
</div>

---

# A brief introduction
Expand Down

0 comments on commit e5c2edc

Please sign in to comment.