question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Common problems also found in other tests.

  1. Problem description too vague: Given a year, report if it is a leap year.
  • function/class?
  • name?
  • file name?
  • return type?
  • restrictions?

=> the user has to guess what to do, from the test suite.

  1. Test suite is incomplete, most tests are skipped because of @Ignored tags.

=> test unreliable

class LeapTest {

    @Test
    fun yearNotDivisibleBy4() {
        assertFalse(Year(2015).isLeap)
    }

    @Ignore
    @Test
    fun yearDivisibleBy4NotDivisibleBy100() {
        assertTrue(Year(1996).isLeap)
    }

    @Ignore
    @Test
    fun yearDivisibleBy100NotDivisibleBy400() {
        assertFalse(Year(2100).isLeap)
    }

    @Ignore
    @Test
    fun yearDivisibleBy400() {
        assertTrue(Year(2000).isLeap)
    }

}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mikegehardcommented, May 28, 2019

I’m closing this issue for now. If the two discussions above don’t solve this for you, please start a discussion here and we can try to find a solution together.

1reaction
mikegehardcommented, May 28, 2019

Thanks for the report. #2 should be addressed in #296. Each assignment description will let folks know to remove the @Ignore. Hopefully that helps once it is deployed to prod. If it doesn’t, please let me know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object Reference Errors - LEAP Community
"Object reference not set to an instance of an object" is an error that may appear when sending an email via LEAP.
Read more >
Leap! (2016) mistakes
The biggest mistakes you never noticed in Leap! (2016). Add more and vote on your favourites!
Read more >
Troubleshooting user errors - HCL Leap 9
Troubleshooting user errors · Incorrect layout in the form or incorrect sizing of fonts, particularly when printed. This problem can occur if you...
Read more >
I have a question upon error message 'Erange error'. - LEAP
Range errors, access violations and various other low level error messages are a likely indication of a bug in LEAP or some other...
Read more >
Characterizing and Compensating for Errors in a Leap Motion ...
Abstract: This paper concerns a rehabilitation framework that makes use of a low cost "off-the-shelf" device. The device is a visual markerless sensor...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found