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.

Problems with MODULE

See original GitHub issue

If the MODULE env variable is not set cocotb fails hard by raising (an ImportError of all things…) in the startup routine. It seems to me it should just run and exit with no failure because there are no tests to run.

MODULE might also accidentally contain trailing or leading separators, this isn’t handled, and tests show it fails in an ugly way. HOOKS, whose usefulness is debatable, suffers the same problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
eric-wiesercommented, Apr 7, 2020

To be clear, my claim above is that today, MODULE="file_with_no_tests" passes with no warnings and emits an empty results.xml.

I think the thing to do is:

  • Module not set: Error (like we do today, but with a clearer message)
  • Tests resolve to an empty list: Emit results.xml as normal (which we already do?), print a warning (which we currently don’t).
1reaction
eric-wiesercommented, Apr 7, 2020

If the MODULE env variable is not set cocotb fails hard by raising (an ImportError of all things…) in the startup routine. It seems to me it should just run and exit with no failure because there are no tests to run.

I don’t agree, if it’s not set I then I think we should fail. The behavior you describe seems appropriate if it’s deliberately set to an empty string though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Module equations. Modules - math10.com – Math
Problem 1 Solve the equation: A) |x| = 5. B) |3x + 4| = 7. C) |1 / 3x + 4| = 0....
Read more >
The Problem With Modular Learning And 3 Easy Ways To Fix It
This article provides 3 ways to fix the problem with learning modules and create reusable, multipurpose lessons that will provide more bang ...
Read more >
14 Challenges of Modular Learning to Students and Teachers
1. Inability to submit on time · 2. Difficulty in reading and comprehension · 3. Personal Teenage Problems · 4. Poor Wi-Fi Connections...
Read more >
Module Theory | Problems in Mathematics
A Module M is Irreducible if and only if M is isomorphic to R/I for a Maximal Ideal I. · Problem 449 ·...
Read more >
Disadvantages of modular learning - Helpline PH
1. NOT ALL STUDENTS DO THEIR MODULES WHOLEHEARTEDLY · 2. SOME PARENTS SPOIL THEIR CHILDREN AND DO THE DEED INSTEAD OF THEIR CHILDREN...
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