Add `test` and `expect` resources for fast and concise testing 🔧
See original GitHub issueThe following program should fail when run in CLI, however it succeeds. Moreover, the log() function doesn’t seem to be called. I assume the whole function to test is not run at all.
This is a fast and concise way to define tests, it would be great if this worked soon.
🦄 .editor
// Entering editor mode (^D to finish, ^C to cancel)
test('hello', fun () {
log('Hello!')
expect(2 + 2):toBe(4)
expect(2 + 2):toBe(20)
})
int ask(call(get('test'),'hello',fun(call(get('log'),'Hello!'),call(get('toBe'),call(get('expect'),call(get('+'),2,2)),4),call(get('toBe'),call(get('expect'),call(get('+'),2,2)),20))))
5
🦄
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Best Practices for Creating End-to-End Tests - Datadog
Defining your test coverage; Building efficient, meaningful tests; Designing coherent and easy-to-navigate test suites; Creating notifications ...
Read more >How to Write Test Cases: The Ultimate Guide with Examples
The best and simple way to organize your test document is by splitting it into many single useful sections. Divide the entire testing...
Read more >Unit Testing Best Practices: 9 to Ensure You Do It Right
Do you know any unit testing best practice? In this post, you'll learn nine of them so you can get started the right...
Read more >How to Write Test Cases for Software: Examples & Tutorial
But functional testing is just one aspect of writing a test case. Software testing should robustly challenge every aspect of the code from ......
Read more >Software Testing: 101 Top Tips, Tricks and Strategies - Stackify
There's a process to thorough software testing, which entails writing appropriate test cases, ensuring that you're covering the right features ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is a related issue: #66
@mhagmajer Sounds great, I didn’t think of this kind of solution. Let me figure this out.