Comments (7)
I've started playing around with aruba
for making acceptance tests that make no choices about the design/classes/methods. I don't really want to introduce a new dependency, but we could definitely write fewer tests and not specify the steps along the way.
from ruby.
I think it's mostly the tests should require more functionality each time, but through the one tested final method. But by having a trivial first example, and keep on adding bordercases, this can be done most of the time. I don't think the testing framework itself matters too much.
from ruby.
Related information:
Listed here for my convenience.
from ruby.
@markijbema and @kytrinyx hopefully this is what you had in mind.
from ruby.
BTW: in the spirit of "Look to exercism for awesome code" I took the following measurements:
Flogging your code!
44.7: flog total
5.6: flog/method average
11.9: Series#separate example.rb:30
7.1: Series#largest_product example.rb:9
6.7: Series#collection_of_digits example.rb:36
6.4: Series#analyzer example.rb:17
Your code reeks this much!
example.rb -- 2 warnings:
[19]:Series#analyzer contains iterators nested 2 deep (NestedIterators)
[26]:Series#reduce_to_product doesn't depend on instance state (UtilityFunction)
from ruby.
42.6: flog total
4.3: flog/method average
6.7: Series#collection_of_digits example.rb:45
6.5: Series#analyzer example.rb:22
6.4: Series#validate_length example.rb:17
6.1: Series#separate example.rb:39
from ruby.
That's a much nicer result.
from ruby.
Related Issues (20)
- stock_for_item method in boutique Inventory challenge HOT 4
- `item_names` in Boutique Inventory challenge HOT 1
- Kindergarten Garden may be harder than defined HOT 4
- [SavingAccounts]: Suggestion: change negative interest rate tests to return positive value HOT 5
- Hacktoberfest 2022 HOT 2
- Binary Search Ruby HOT 3
- TwoBucket - possible error in test suite HOT 4
- Question about function name in "Moviegoer" exercism HOT 2
- Typo in final bird_count test where "whith" should be "with" HOT 2
- Typo in locomotive_engineer instrucions HOT 2
- Locomotive Engineer exercise relies on implicit Ruby behavior HOT 1
- the pythagorean triplet exercise has something wrong with it HOT 1
- Add analyzer for leap HOT 2
- Armstrong exercise tests confusion HOT 7
- 🤖 Sync error for commit 3312f6 HOT 1
- The Symbols document contains a factual error. HOT 2
- Building a training set of tags for ruby HOT 22
- Should the Attendee query methods end in a question mark? HOT 2
- Issue with savings_account interest_rate test HOT 2
- Parallel Letter Frequency times out in the web interface HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby.