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.

error running tutorial: decorated test ('MyTest') is an abstract test

See original GitHub issue

While exploring the tutorials, I tried to run the example

import reframe as rfm
import reframe.utility as util


@rfm.simple_test
class MyTest(rfm.RegressionTest):
    module_info = parameter(util.find_modules('GROMACS'))

    def __init__(self):
        s, e, m = self.module_info
        self.valid_systems = [s]
        self.valid_prog_environs = [e]
        self.modules = [m]

found at https://reframe-hpc.readthedocs.io/en/v3.5.1/tutorial_advanced.html but I got an error:

$ reframe -c gromacs.py -r
[ReFrame Setup]
  version:           3.5.1
  command:           '/nethome/mabraham/anaconda3/envs/gmxbm/bin/reframe -c gromacs.py -r'
  launched by:       mabraham@dev-gpu06
  working directory: '/nethome/mabraham/amd-gpu-benchmarks/runs'
  settings file:     '<builtin>'
  check search path: '/nethome/mabraham/amd-gpu-benchmarks/runs/gromacs.py'
  stage directory:   '/nethome/mabraham/amd-gpu-benchmarks/runs/stage'
  output directory:  '/nethome/mabraham/amd-gpu-benchmarks/runs/output'

/nethome/mabraham/anaconda3/envs/gmxbm/bin/reframe: run session stopped: value error: ../../anaconda3/envs/gmxbm/lib/python3.9/site-packages/reframe/core/decorators.py:88: decorated test ('MyTest') is an abstract test
        raise ValueError(f'decorated test ({cls.__qualname__!r}) is an'

Did I do something wrong? How should I make the example work?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jjoterocommented, Mar 24, 2021

You can test if the util.find_modules is working by popping the @rfm.simple_test and doing

class MyTest(rfm.RegressionTest):
   ...

print(MyTest.param_space['module_info'])

This last print should show you what the values of the module_info parameter are.

0reactions
mabrahamcommented, Mar 25, 2021

Perhaps we should issue a warning if users end up asking module operations from nomod.

Yes that would be useful

Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio - Tests not running in Test Explorer - Stack Overflow
I am currently working on a solution that has currently 32 Unittests. I have been working with the resharper test runner - which...
Read more >
Intro to Unit Testing C# code with NUnit and Moq (part 1)
This tutorial provides an introduction to unit testing C# with NUnit and Moq. It provides a comprehensive overview of unit testing and real ......
Read more >
Reference - Spintop OpenHTF documentation - Read the Docs
The core spintop-openhtf interface to create an openhtf sequence. TestPlan simplifies the creating of openhtf sequences. Instead of declaring functions and ...
Read more >
pytest Documentation - Read the Docs
Will run all tests which are decorated with the @pytest.mark.slow decorator. ... (See Demo of Python failure reports with pytest).
Read more >
4. Writing Great Code - The Hitchhiker's Guide to Python [Book]
Here's an example of the kinds of things you might see when you run pep8 : $ pep8 optparse.py ... Error handling in...
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