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.

Should test for unused items and creatures

See original GitHub issue

It would be useful to have tests that ensured that each item and creature were mentioned by at least one location in the locations.json configuration file with a positive probability.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
bernardosulzbachcommented, Mar 25, 2017

I read about JUnit suites, but I don’t think they will be a good solution as they seem to clutter the tests a lot.

I do think that what we agreed upon yesterday is a sensible solution, and it doesn’t rely on ordering.

We should have a SpecificIdJsonRule that is instantiated from a set of Ids. Then we check whether or not the fields have one of these specific ids instead of any id, and if any of the ids haven’t been used at least once, we throw an exception.

So in the beginning of the location tests, we create a SpecificIdJsonRule for item ids from the items JSON file.

0reactions
bernardosulzbachcommented, May 20, 2017

Closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Save the Animals: Stop Animal Testing | - Lone Star College
Therefore, animals should not be used in research or to test the safety of products. First, animals' rights are violated when they are...
Read more >
The Truth About Animal Testing | PETA
While some of the experimentation conducted on animals today is required by law, most of it isn't.
Read more >
Animal Testing | Pros & Cons | ProCon.org
Proponents say animal testing contributes to life-saving cures and treatments. Opponents say animal testing is cruel and inhumane.
Read more >
Animal testing and experiments FAQ
Which animals are used in experiments? ... Animals used in experiments include baboons, cats, cows, dogs, ferrets, fish, frogs, guinea pigs, hamsters, horses, ......
Read more >
Animals Used in Testing | National Anti-Vivisection Society
Perhaps the most commonly known method of animal testing for toxicity is the Draize rabbit eye test, intended to predict whether a product...
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