jakub::sobolewski
blog
r tests gallery
course
resources
⌘
K
Subscribe
jakub::sobolewski
blog
r tests gallery
course
resources
⌘
K
Subscribe
There are 41 posts tagged with
r
How to Test R Code That Uses LLMs, APIs, or Databases
A Practical Guide to Faking External Dependencies in R for Fast, Reliable Tests.
Aug 1, 2025
tests
r
llm
3 min read
How to Write Cucumber Specifications the Right Way: From App Description to Scenarios
Adding Cucumber specifications to an existing application? Learn how to write Gherkin scenarios that focus on user behavior, not implementation details. Use AI to iterate faster.
Jul 30, 2025
tests
r
bdd
cucumber
llm
shiny
5 min read
Refactoring Cucumber and Playwright Acceptance Tests with GitHub Copilot
Given a set of existing Cucumber and Playwright acceptance tests, I asked Copilot to refactor them according to best practices for step organization and anti-patterns.
Jul 29, 2025
tests
r
bdd
cucumber
llm
5 min read
3 Reasons Blocking You From Doing Automated Testing
Get them out of your way to start testing your code effectively.
Jul 23, 2025
tests
r
4 min read
Testing your Plumber APIs from R
Learn how to effectively test your Plumber APIs in R using a two-layer testing strategy that separates business logic from API contracts.
Jul 20, 2025
r
tests
plumber
6 min read
Testing Legacy Shiny Apps: Start with Behavior, Not Code
Adding acceptance tests first makes refactoring safer.
Jul 16, 2025
r
tests
4 min read
The 4 Layers of Testing Every R Package Needs
Discover the essential layers of testing for robust R packages: unit tests, acceptance tests, code coverage, and mutation testing.
Jul 9, 2025
r
tests
3 min read
An Introduction to Behavior-Driven Development in R
Learn how to use Behavior-Driven Development (BDD) in R to ensure your software meets user requirements through executable specifications.
Jul 4, 2025
r
tests
bdd
cucumber
8 min read
Keys To Scalable Code: Owning The Interfaces You Use
Learn how to build scalable and maintainable code by abstraction and information hiding, improving flexibility and ease of future changes.
Jan 23, 2025
r
shiny
4 min read
Acceptance Test-Driven Development with Shiny
Learn how to apply Acceptance Test-Driven Development (ATDD) to build robust Shiny applications using {shinytest2} and {selenider}.
Jan 22, 2025
r
tests
shiny
2 min read
Maximizing Efficiency with AI-Assisted Testing: Lessons Learned
Discover the benefits and challenges of AI-assisted testing, and learn how to optimize your testing process for better code quality and maintainability.
Jan 13, 2025
r
tests
3 min read
Efficient Snapshot Testing in R with CI and GitHub API
Learn how to manage snapshot tests in R using CI and GitHub API to ensure consistency across different environments.
Dec 13, 2024
r
tests
5 min read
How to Get Code Coverage Reports Without Sharing Code with Codecov.io
Learn how to generate code coverage reports in R using cobertura-action without sharing your private code with codecov.io.
Dec 11, 2024
r
tests
2 min read
Choosing the Best Library for Acceptance Testing Shiny Apps: {shinytest2} vs Cypress
Compare {shinytest2} and Cypress for acceptance testing Shiny apps. Learn their pros, cons, and which might suit your project better.
Dec 2, 2024
r
tests
5 min read
Optimize Your Unit Test Structure for Faster Feedback
Learn how to speed up your unit tests by optimizing the structure of your test files using testthat in R.
Nov 8, 2024
r
tests
tdd
3 min read
How Tests Improve Code Quality: 3 Key Insights
Discover how tests can reveal code modularity, coupling, and separation of concerns to improve your code quality.
Oct 24, 2024
r
tests
6 min read
Top 3 Testing Lessons from 3 Years as an R Developer
Discover the top three lessons learned from three years of testing as an R developer. Improve your testing practices with these insights.
Oct 20, 2024
r
tests
5 min read
Improve Your Unit Test Titles for Better Code Understanding
Learn how to write descriptive unit test titles that enhance code readability and maintainability.
Oct 13, 2024
r
tests
4 min read
How to Easily Capture and Test Code Output in R
Learn methods to capture and test code output in R, including snapshot testing, dput, and constructive package.
Sep 14, 2024
r
tests
5 min read
Optimize Shinytest2: Speed Up Your Shiny App Tests
Learn how to speed up Shiny app tests using shinytest2 by reusing application instances and refreshing the browser.
May 29, 2024
r
shiny
shinytest2
tdd
tests
8 min read
Effective Testing of Shiny Components with shinytest2
Learn how to test Shiny components for correct markup and server communication using shinytest2.
May 23, 2024
r
tests
4 min read
Effective State Management in Shiny Modules: A React-Inspired Approach
Learn how to manage state in Shiny modules using a React-inspired approach with event handlers for better control and flexibility.
Mar 29, 2024
r
shiny
5 min read
Creating Robust E2E Test Selectors for Shiny Apps
Learn how to create resilient E2E test selectors in Shiny apps using data-* attributes and best practices.
Mar 15, 2024
r
tests
shiny
ui
3 min read
How to Snapshot Test Excel Workbooks in Shiny Apps
Learn how to export data to Excel in Shiny apps and use snapshot tests to validate and inspect the exported workbooks.
Mar 6, 2024
r
tests
tdd
shiny
4 min read
Developing Shiny Modules with Test-Driven Development
Learn how to use tests to develop Shiny modules efficiently, ensuring faster development cycles and better modularization.
Mar 3, 2024
r
tests
tdd
shiny
3 min read
How to Set Up Cucumber for End-to-End Testing in Rhino Projects
Learn how to set up Cucumber with Cypress in Rhino projects for clear and maintainable end-to-end tests.
Feb 28, 2024
r
tests
shiny
5 min read
BDD Style Testing for Shiny Module Servers with R6 and testServer
Learn how to write BDD style tests for Shiny module servers using R6 and testServer to improve readability and maintainability.
Jan 30, 2024
r
tests
shiny
5 min read
Real-Time Input Validation Using Bootstrap Form Validation API
Learn how to implement real-time input validation in Shiny apps using Bootstrap Form Validation API for immediate feedback.
Jan 29, 2024
r
ui
shiny
2 min read
How to Use Acceptance Test-Driven Development for Shiny Modules
Learn how to apply acceptance test-driven development (ATDD) to build robust Shiny modules with R6 and shinytest2.
Dec 12, 2023
r
tests
shiny
2 min read
Comprehensive Guide to Testing Shiny Modules with shiny::testServer
Learn how to effectively test Shiny modules using shiny::testServer with examples and best practices.
Oct 31, 2023
r
tests
shiny
3 min read
3-Step Guide to Building Plots Faster with Test Driven Development
Discover how to use TDD and approval testing to rapidly develop and test plots in R.
Oct 29, 2023
r
tests
tdd
ui
5 min read
How Test-Driven Development (TDD) Speeds Up Prototyping
Learn how TDD helps you prototype faster by allowing you to experiment with your code and find better solutions quickly.
Oct 29, 2023
r
tests
tdd
3 min read
Extending Shiny Modules with TDD in Legacy Code
Learn how to extend Shiny modules in legacy code using the Sprout Technique and Test Driven Development.
Oct 28, 2023
r
tests
tdd
shiny
1 min read
How to Develop Quickly Using a New Library Without Reading Extensive Documentation
Learn how to use AI tools to use new libraries quickly without spending hours on documentation.
Oct 18, 2023
r
tests
llm
3 min read
How to Test Code with External Dependencies Using Stubs in R
Learn how to test R functions with external dependencies using stubs and the testthat package.
Oct 17, 2023
r
tests
2 min read
Mastering Test-Driven Development: 3 Essential Steps for Better Code
Learn the 3 essential steps of Test-Driven Development (TDD) to improve code quality and development speed.
Oct 12, 2023
r
tests
tdd
3 min read
Mastering Test Driven Development: Build the Right Thing First
Learn how Test Driven Development (TDD) ensures you build the right thing on the first try with no rewrites.
Oct 12, 2023
r
tests
tdd
2 min read
Effective Strategies to Avoid Frustration with Legacy Code
Learn how to manage legacy code efficiently using the Sprout Technique to reduce frustration and improve productivity.
Oct 12, 2023
r
tests
2 min read
Improve Your Unit Tests with Arrange, Act, Assert Method
Learn how to write cleaner and more effective unit tests using the Arrange, Act, Assert method. Step-by-step guide with examples.
Oct 12, 2023
r
tests
4 min read
How We Achieved 96% Code Coverage in a 2-Week App Prototype
Learn how we built an app prototype with 96% code coverage in just 2 weeks using TDD and effective testing strategies.
Oct 6, 2023
r
tests
tdd
shiny
5 min read
3 Essential Types of Unit Tests Every R Developer Should Know
Learn about Direct Response, State Change, and Interaction Tests to improve your unit testing strategy.
Sep 25, 2023
r
tests
3 min read