Skip to content

Commit

Permalink
feat(rebrand): rebrand as robo coasters (#23)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Josh Goldberg ✨ <[email protected]>
  • Loading branch information
nicojs and JoshuaKGoldberg committed Feb 1, 2024
1 parent cc21695 commit 7d53e77
Show file tree
Hide file tree
Showing 48 changed files with 2,913 additions and 23,463 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"cSpell.words": ["clazz", "robo", "robobar"]
"cSpell.words": ["robo", "robocoasters"]
}
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![Code coverage badge](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://stryker-mutator.io/robobar-example/reports/coverage/lcov-report/index.html)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fstryker-mutator%2Frobobar-example%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/stryker-mutator/robobar-example/master)
[![Code coverage badge](https://img.shields.io/badge/coverage-100%25-brightgreen)](https://stryker-mutator.io/robocoasters-example/reports/coverage/lcov-report/index.html)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fstryker-mutator%2Frobocoasters-example%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/stryker-mutator/robocoasters-example/master)

# Welcome to the RoboBar
# Welcome to RoboCoasters

> An introduction to mutation testing
Expand All @@ -11,27 +11,27 @@ _How code coverage of 100% could mean less than 60% is tested._

No time to run the example yourself? Don't worry, we did it for you. Open it right in your browser:

- [The RoboBar website](https://stryker-mutator.io/robobar-example/)
- [Coverage report](https://stryker-mutator.io/robobar-example/reports/coverage/lcov-report/index.html)
- [Mutation report](https://dashboard.stryker-mutator.io/reports/github.com/stryker-mutator/robobar-example/master)
- [The RoboCoasters website](https://stryker-mutator.io/robocoasters-example/)
- [Coverage report](https://stryker-mutator.io/robocoasters-example/reports/coverage/lcov-report/index.html)
- [Mutation report](https://dashboard.stryker-mutator.io/reports/github.com/stryker-mutator/robocoasters-example/master)

## What is this?

The RoboBar is a small application to demo mutation testing. It actually has a fair amount of unit tests. When we wrote this application, we didn't even try our best to write bad tests. We just focussed on code coverage and didn't practice Test Driven Development. It turns out it's really easy to write bad tests or forget a few important test cases. The RoboBar even has a fairly large bug. Finding it is pretty easy using the mutation report. Why don't you give it a try? 😁
Robocoasters is a small application to demo mutation testing. It actually has a fair amount of unit tests. When we wrote this application, we didn't even try our best to write bad tests. We just focussed on code coverage and didn't practice Test Driven Development. It turns out it's really easy to write bad tests or forget a few important test cases. Robocoasters even has a fairly large bug. Finding it is pretty easy using the mutation report. Why don't you give it a try? 😁

**Note:** The RoboBar is developed using [native web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) without a frontend framework. This is done on purpose to keep this example as accessible as possible, as well as to keep the maintenance burden low.
**Note:** Robocoasters is developed using [native web components](https://developer.mozilla.org/en-US/docs/Web/Web_Components) without a frontend framework. This is done on purpose to keep this example as accessible as possible, as well as to keep the maintenance burden low.

## Try it yourself

1. Install [git](https://git-scm.com)
1. Install [nodejs](https://nodejs.org/)
1. Open command prompt and clone this repository:
```shell
git clone https://github.com/stryker-mutator/robobar-example
git clone https://github.com/stryker-mutator/robocoasters-example
```
1. Change directory into the robobar and install the dependencies.
1. Change directory into robocoasters and install the dependencies.
```shell
cd robobar-example
cd robocoasters-example
npm install
```
1. Run tests with npm. This will generate a code coverage report.
Expand Down
5 changes: 0 additions & 5 deletions api/drinks.json

This file was deleted.

21 changes: 21 additions & 0 deletions api/rides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"id": "swings",
"name": "Roba Swings",
"description": "Be the sultan who swings!",
"image": "/img/swing.png"
},
{
"id": "merrobo",
"name": "Merrobo Round",
"description": "Very safe. This is highly recommended for any age.",
"image": "/img/merry-go-round.png"
},
{
"id": "coaster",
"name": "Robo Coaster Of Doom",
"description": "This is the most dangerous ride in the park. You must be at least 140cm tall to ride this ride.",
"minHeight": 140,
"image": "/img/coaster.png"
}
]
Loading

0 comments on commit 7d53e77

Please sign in to comment.